More specific description of language property of the application

This commit is contained in:
Alexander Makarov
2014-01-13 22:39:34 +04:00
parent a5d5e80400
commit dd621958c6

View File

@ -36,8 +36,12 @@ Later you can easily change it in runtime:
\Yii::$app->language = 'zh-CN';
```
> **Note**: please refer to [ICU documentation](http://userguide.icu-project.org/locale) in order to find out language
> and country codes for your case.
Format is `ll-CC` where `ll` is two- or three-letter lowercase code for a language according to
[ISO-639](http://www.loc.gov/standards/iso639-2/) and `CC` is country code according to
[ISO-3166](http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html).
> **Note**: you can further customize details specifying language
> [as documented in ICU project](http://userguide.icu-project.org/locale#TOC-The-Locale-Concept).
Basic message translation
-------------------------