docs/guide/tutorial-i18n.md grammar fixed [ci skip]

This commit is contained in:
Nobuo Kihara
2015-09-15 22:13:54 +09:00
parent bfa4ce1d53
commit aac2af1bdd

View File

@ -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-й посетитель