Khalid Al-Mutawa

Results comments of Khalid Al-Mutawa

I believe so, this is shown in phpinfo: ![screen shot 2015-04-24 at 5 26 08 pm](https://cloud.githubusercontent.com/assets/5470101/7320735/251a34dc-eaa7-11e4-9922-9eb77f391382.png)

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)