|
|
@ -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!'); |
|
|
|
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 |
|
|
|
```php |
|
|
|
'components' => [ |
|
|
|
'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}}. |
|
|
|
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). |
|
|
|
[rules reference at unicode.org](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html). |
|
|
|
|
|
|
|
|
|
|
|
### Selections |
|
|
|
### Selections |
|
|
|