Browse Source

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

9899-cache-bug
Nobuo Kihara 9 years ago
parent
commit
aac2af1bdd
  1. 6
      docs/guide/tutorial-i18n.md

6
docs/guide/tutorial-i18n.md

@ -399,12 +399,12 @@ locale you are translating to:
```php ```php
$n = 3; $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: // For English it outputs:
// You are 3rd visitor // You are the 3rd visitor
// Translation // 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: // For Russian translation it outputs:
// Вы 3-й посетитель // Вы 3-й посетитель

Loading…
Cancel
Save