Skip to content

Commit

Permalink
Fix #69: Generate default en message translation file
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed May 12, 2015
1 parent 79e86d4 commit ec5a3cd
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version 1.7.3
=============
**Date:** 20-Apr-2015
**Date:** 12-May-2015

1. (enh #54): Auto guess input and set input options based on input type.
2. (enh #56): Reset/Clear help-block error messages before next validation.
Expand All @@ -16,6 +16,7 @@ version 1.7.3
8. (enh #62): Enhance footer property to include tags for '{loading}' and '{buttons}'.
9. (bug #63): Fix renderActionButtons to correctly parse submit & reset button options.
10. (enh #64): Better reset of error container help-block content.
11. (enh #69): Generate default `en` message translation file.

version 1.7.2
=============
Expand Down
2 changes: 1 addition & 1 deletion messages/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'messagePath' => __DIR__,
// array, required, list of language codes that the extracted messages
// should be translated to. For example, ['zh-CN', 'de'].
'languages' => ['da', 'de', 'es', 'fr', 'hu', 'it', 'lt', 'pt-BR', 'ru', 'vi'],
'languages' => ['da', 'de', 'en', 'es', 'fr', 'hu', 'it', 'lt', 'pt-BR', 'ru', 'vi'],
// string, the name of the function for translating messages.
// Defaults to 'Yii::t'. This is used as a mark to find the messages to be
// translated. You may use a string for single function name or an array for
Expand Down
25 changes: 25 additions & 0 deletions messages/en/kveditable.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yii message' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message (key).
* If the value is empty, the message is considered as not translated.
* Messages that no longer need translation will have their translations
* enclosed between a pair of '@@' marks.
*
* Message string can be used with plural forms format. Check i18n section
* of the guide for details.
*
* NOTE: this file must be saved in UTF-8 encoding.
*/
return [
'(not set)' => '',
'Apply' => '',
'Close' => '',
'Edit' => '',
'Reset' => '',
];

0 comments on commit ec5a3cd

Please sign in to comment.