Ionut Flavius Pogacian
Ionut Flavius Pogacian

Reputation: 4811

Yii language sourceLanguage and translations

I am trying to translate a app in many languages, using Yii MVC;

In main.php i have set language => en_us;

When I try using Yii::t('file','key') i get the key as is was written, not the translated text.

Upvotes: 1

Views: 132

Answers (1)

Den Kison
Den Kison

Reputation: 1084

I think that this might happen because your source and current languages are equals and they set to "en". As example. If you want to translate from english to russian you must set current language as "ru" and source language must be "en". Here details http://www.yiiframework.com/doc/guide/1.1/en/topics.i18n.

Upvotes: 1

Related Questions