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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
e847cb14
Commit
e847cb14
authored
Jan 27, 2014
by
Mark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
markdown fix
parent
aab5d35b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
i18n.md
docs/guide/i18n.md
+3
-2
No files found.
docs/guide/i18n.md
View file @
e847cb14
...
...
@@ -307,8 +307,9 @@ 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
files under default translation
`basePath`
and simply use them as usual, for example:
1.
c
reate your category file under messages
`basePath`
, according default translation. Since we are not overriding
`basePath`
property of
*
C
reate 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`
.
```
php
# not_specified_category.php file under @app/messages directory.
...
...
@@ -317,7 +318,7 @@ return [
];
```
2.
Use your category as before.
*
Use your category as before.
```
php
echo
Yii
::
t
(
'not_specified_category'
,
'message from not specified category'
);
...
...
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