|
|
|
@ -47,7 +47,7 @@ translation of the message from source language into target language. Message it
|
|
|
|
|
echo \Yii::t('app', 'This is a string to translate!'); |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
Yii tries to load approprite translation from one of the message sources defined via `i18n` component configuration: |
|
|
|
|
Yii tries to load appropriate translation from one of the message sources defined via `i18n` component configuration: |
|
|
|
|
|
|
|
|
|
```php |
|
|
|
|
'components' => [ |
|
|
|
@ -239,7 +239,7 @@ you'll get "Inconsistent types declared for an argument: U_ARGUMENT_TYPE_MISMATC
|
|
|
|
|
Total {count, number} {count, plural, one{item} other{items}}. |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
To learn which inflection forms you should specify for your language you can referer to |
|
|
|
|
To learn which inflection forms you should specify for your language you can referrer to |
|
|
|
|
[rules reference at unicode.org](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html). |
|
|
|
|
|
|
|
|
|
### Selections |
|
|
|
@ -265,4 +265,4 @@ Formatters
|
|
|
|
|
In order to use formatters you need to install and enable [intl](http://www.php.net/manual/en/intro.intl.php) PHP |
|
|
|
|
extension. |
|
|
|
|
|
|
|
|
|
TBD: provided classes overview. |
|
|
|
|
TBD: provided classes overview. |
|
|
|
|