Hi everyone,
i set the default language in main.php in french language,
return array(
.......
'sourceLanguage' =>'fr_FR',
'language' =>'fr_FR',
.......
it works fine when i use Yii:t() in views, but the cgridview / clistview displays the english language as default language in the summary and pager.
Is there any solution to make those widget take any other language as default language ?
is there any way to force those widget to take other language as default language ?
madand
(Dev Madand)
January 24, 2013, 11:33am
2
Hi,
if you look into Yii’s “framework/messages ” directory, you might see that there is a directory named “fr” (but not “fr_FR”), which contains French translations for all core/zii messages. Please try to alter your main.php as follows:
....
'sourceLanguage' => 'fr',
'language' => 'fr',
....
Of course, you should also rename a directory that contains you own messages.
MadAnd:
Hi,
if you look into Yii’s “framework/messages ” directory, you might see that there is a directory named “fr” (but not “fr_FR”), which contains French translations for all core/zii messages. Please try to alter your main.php as follows:
....
'sourceLanguage' => 'fr',
'language' => 'fr',
....
Of course, you should also rename a directory that contains you own messages.
oh yeah it works ! thx very much !
but it’s bizzare that works now lol, because i tried that before but didn’t work…
maby when i tried that i didn’t include the :
'sourceLanguage' =>'fr',
Any way tnx again !