Представление:
Код: Выделить всё
Yii::t(
'app',
'There {n, plural, =0{are no cats} =1{is one cat} other{are # cats}}!',
['n' => 21]
);
Код: Выделить всё
'There {n, plural, =0{are no cats} =1{is one cat} other{are # cats}}!' =>
'Здесь {n, plural, =0{котов нет} =1{есть один кот} one{# кот} few{# кота} many{# котов} other{# кота}}!',
Конфиги:Здесь 21 кота!
Код: Выделить всё
'sourceLanguage' => 'en-US',
'language' => 'ru',
В чем может быть дело?