mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 14:57:23 +08:00
@@ -97,7 +97,7 @@ language is used.
|
||||
`fileMap` specifies how message categories specified in the first argument of `\Yii::t()` are mapped to files when
|
||||
`PhpMessageSource` is used. In the example we're defining two categories `app` and `app/error`.
|
||||
|
||||
Instead of configuring `fileMap` you can rely on convention which is `messages/BasePath/LanguageID/CategoryName.php`.
|
||||
Instead of configuring `fileMap` you can rely on convention which is `BasePath/messages/LanguageID/CategoryName.php`.
|
||||
|
||||
#### Named placeholders
|
||||
|
||||
@@ -425,4 +425,4 @@ After cofiguring the component can be accessed as `Yii::$app->formatter`.
|
||||
Note that in order to use i18n formatter you need to install and enable
|
||||
[intl](http://www.php.net/manual/en/intro.intl.php) PHP extension.
|
||||
|
||||
In order to learn about formatter methods refer to its API documentation: [[yii\i18n\Formatter]].
|
||||
In order to learn about formatter methods refer to its API documentation: [[yii\i18n\Formatter]].
|
||||
|
||||
Reference in New Issue
Block a user