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
c31e79f5
Commit
c31e79f5
authored
Jan 09, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added guide for contributing message translations
parent
e14cac63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
translations.md
docs/internals/translations.md
+26
-0
No files found.
docs/internals/translations.md
0 → 100644
View file @
c31e79f5
Translation workflow
====================
Yii is translated in many languages in order to be useful for international applications and developers. Two main areas
where contribution is very welcome are documentation and framework messages.
Framework messages
------------------
Framework has two types of messsages: exceptions that are intended to developer and are never translated and messages
that are actually visible to end user such as validation errors.
In order to start with message translation:
1.
Check
`framework/yii/messages/config.php`
and make sure your language is listed in
`languages`
.
2.
Go to
`framework/yii`
and run
`yii message/extract messages/config.php`
.
3.
Translate messages in
`framework/yii/messages/your_language/yii.php`
. Make sure file is saved using UTF-8 encoding.
4.
Make a pull request.
In order to keep your translation up to date you may run
`yii message/extract messages/config.php`
again. It will
automatically re-extract messages keeping unchanged ones intact.
In the translation file each array element represents the translation (value) of a message (key). If the value is empty,
the message is considered as not translated. Messages that no longer need translation will have their translations
enclosed between a pair of '@@' marks. Message string can be used with plural forms format. Check
[
i18n section
of the guide](i18n.md) for details.
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