Commit e65e56f1 by Mark

typo fix

parent cbd55412
...@@ -305,16 +305,15 @@ This translation should be marked with `*`. For example do this in your config f ...@@ -305,16 +305,15 @@ This translation should be marked with `*`. For example do this in your config f
``` ```
After that you can start using your categories without specifying them in i18n translations. This is more familiar as for Yii1. Now you can create After that you can start using your categories without specifying them in i18n translations. This is more familiar as for Yii1. Now you can create
files under default category `basePath` and simply use them as usual, for example: files under default translation `basePath` and simply use them as usual, for example:
1. create your category file under messages `basePath`, according default translation. Since we are not overriding `basePath` property of 1. create your category file under messages `basePath`, according default translation. Since we are not overriding `basePath` property of
[`PhpMessageSource`](https://github.com/yiisoft/yii2/blob/master/framework/i18n/PhpMessageSource.php#L40) it would be `@app/messages`. [`PhpMessageSource`](https://github.com/yiisoft/yii2/blob/master/framework/i18n/PhpMessageSource.php#L40) it would be `@app/messages`.
```php ```php
# not_specified_category.php file under @app/messages directory. # not_specified_category.php file under @app/messages directory.
return [ return [
'message from not specified category' => 'сообщение из не указанной категории', 'message from not specified category' => 'сообщение из неуказанной категории',
]; ];
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment