Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
3c915743
Commit
3c915743
authored
Mar 12, 2014
by
Alexandr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update i18n.md
parent
40cb98bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
i18n.md
docs/guide/i18n.md
+2
-3
No files found.
docs/guide/i18n.md
View file @
3c915743
...
...
@@ -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
]
].
\ No newline at end of file
In order to learn about formatter methods refer to its API documentation:
[
[yii\i18n\Formatter
]
].
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment