Skip to content

Commit

Permalink
Fix #30: 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 df938d7 commit 58c3e26
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
version 1.3.1
=============
**Date:** 03-May-2015
**Date:** 12-May-2015

- (enh #26): Add option to disable credits after Disqus widget.
- Update copyright year till current.
- (enh #29): Validate Disqus comment rendering for older IE browsers.
- (enh #30): Generate default `en` message translation file.

version 1.3.0
=============
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', 'fr', 'es', 'hu', 'ru', 'uk'],
'languages' => ['da', 'de', 'en', 'fr', 'es', 'hu', 'ru', 'uk'],
// 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
34 changes: 34 additions & 0 deletions messages/en/kvsocial.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?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 [
'<strong>Note:</strong> Please use an updated browser to view comments.' => '',
'Download' => '',
'Follow' => '',
'Fork' => '',
'Issue' => '',
'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => '',
'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.' => '',
'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.' => '',
'Please enable JavaScript on your browser to view the VKontakte {pluginName} plugin correctly on this site.' => '',
'Please enable JavaScript to view the {pluginLink}.' => '',
'Star' => '',
'Watch' => '',
'You must enable Javascript on your browser for the site to work optimally and display sections completely.' => '',
'comments powered by Disqus' => '',
];
33 changes: 33 additions & 0 deletions messages/es/kvsocial.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?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 [
'<strong>Note:</strong> Please use an updated browser to view comments.' => '',
'Download' => '',
'Follow' => '',
'Fork' => '',
'Issue' => '',
'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => '',
'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.' => '',
'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.' => '',
'Please enable JavaScript to view the {pluginLink}.' => '',
'Star' => '',
'Watch' => '',
'You must enable Javascript on your browser for the site to work optimally and display sections completely.' => '',
'comments powered by Disqus' => '',
];

0 comments on commit 58c3e26

Please sign in to comment.