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
6fc5f0a4
Commit
6fc5f0a4
authored
Oct 03, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor additions to i18n docs
parent
abc0df61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
i18n.md
docs/guide/i18n.md
+6
-3
No files found.
docs/guide/i18n.md
View file @
6fc5f0a4
...
...
@@ -39,14 +39,17 @@ Later you can easily change it in runtime:
Basic message translation
-------------------------
### Strings translation
Yii basic message translation that works without additional PHP extension.
Yii basic message translation in its basic variant works without additional PHP extension. What it does is finding a
translation of the message from source language into targer language. Message itself is specified as the first
`\Yii::t`
method parameter:
```
php
echo
\Yii
::
t
(
'app'
,
'This is a string to translate!'
);
```
Yii tries to load approprite translation from one of the message sources defined via
`i18n`
component configuration.
TBD: https://github.com/yiisoft/yii2/issues/930
### Named placeholders
...
...
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