mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 02:13:17 +08:00
docs/guide/tutorial-i18n.md grammar fixed [ci skip]
This commit is contained in:
@ -399,12 +399,12 @@ locale you are translating to:
|
||||
|
||||
```php
|
||||
$n = 3;
|
||||
echo Yii::t('app', 'You are {n, selectordinal, one{#st} two{#nd} few{#rd} other{#th}} visitor', ['n' => $n]);
|
||||
echo Yii::t('app', 'You are the {n, selectordinal, one{#st} two{#nd} few{#rd} other{#th}} visitor', ['n' => $n]);
|
||||
// For English it outputs:
|
||||
// You are 3rd visitor
|
||||
// You are the 3rd visitor
|
||||
|
||||
// Translation
|
||||
'You are {n, selectordinal, one{#st} two{#nd} few{#rd} other{#th}} visitor' => 'Вы {n, selectordinal, other{#-й}} посетитель',
|
||||
'You are the {n, selectordinal, one{#st} two{#nd} few{#rd} other{#th}} visitor' => 'Вы {n, selectordinal, other{#-й}} посетитель',
|
||||
|
||||
// For Russian translation it outputs:
|
||||
// Вы 3-й посетитель
|
||||
|
||||
Reference in New Issue
Block a user