Khalid Al-Mutawa
Khalid Al-Mutawa
I believe so, this is shown in phpinfo: 
I have in `common/config/main.php`: ``` 'i18n' => [ 'translations' => [ '*' => [ 'class' => 'yii\i18n\PhpMessageSource', 'basePath' => '@common/messages', 'sourceLanguage' => 'en', 'fileMap' => [ //'main' => 'main.php', ],...
Tried setting it explicitly in the controller action: ``` \Yii::$app->sourceLanguage = "en"; \Yii::$app->language = "ar-KW"; ``` It keeps showing Arabic translation messages but `{attribute}` holds the English translation > Mobile...
@Skysplit can you please explain - is there a way to make the translations work? Where to specify this other{translation}?
Apparently the issue is that it's looking for the translation file in `frontend/messages` when it has been configured to get translations from base path `@common/messages` - any idea why? >...
Fixed by overriding default configuration in `common/config` Defined exact same translation for `app` category ``` 'i18n' => [ 'translations' => [ '*' => [ 'class' => 'yii\i18n\PhpMessageSource', 'basePath' => '@common/messages',...
Attribute labels issue is fixed, but this issue remains: `{attribute} يجب أن يحتوي على أكثر من {min, number} {min, plural, one{حرف} few{حروف} many{حرف}}.`
Fixed by overriding `yii` category translations and adding `other{translation}` in the translation text within the file as @Skysplit mentioned. ``` '{attribute} should contain {length, number} {length, plural, one{character} other{characters}}.' =>...
Hello @xskif , I do have that on top of the file. Is there any PHP extension or configuration required for this to work?
@cebe I'm using latest update of Yosemite on iMac 5K and a Macbook Pro. Format: Mac OS Extended (Journaled)