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
a24c2a6a
Commit
a24c2a6a
authored
Nov 12, 2014
by
munawer
Committed by
Alexander Makarov
Nov 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes in guide [ci skip]
parent
866214e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tutorial-i18n.md
docs/guide/tutorial-i18n.md
+3
-3
No files found.
docs/guide/tutorial-i18n.md
View file @
a24c2a6a
...
...
@@ -57,13 +57,13 @@ The format for the language/locale is `ll-CC` where `ll` is a two- or three-lett
Message translation
-------------------
Message translation is used to translate messages that are ou
put by an applicait
on to different languages
Message translation is used to translate messages that are ou
tput by an applicati
on to different languages
so that users from different countries can use the application in their native language.
The message translation feature in Yii works simply as finding a
translation of the message from a source language into a target language.
To use the message translation feature you wrap your original message strings with a call to the
[
[Yii::t()
]
] method.
The first parameter of this method takes a category which helps to disting
ish the source of messages in differne
t parts
The first parameter of this method takes a category which helps to disting
uish the source of messages in differen
t parts
of the application and the second parameter is the message itself.
```
php
...
...
@@ -501,7 +501,7 @@ Yii uses the [PHP intl extension](http://php.net/manual/en/book.intl.php) to pro
such as the number and date formatting of the
[
[yii\i18n\Formatter
]
] class and the message formatting using
[
[yii\i18n\MessageFormatter
]
].
Both classes provides a fallback implementation that provides basic functionality in case intl is not installed.
This fallback implementation however only works well for sites in english language and even there can not provide the
rich set of features that is av
ia
lable with the PHP intl extension, so its installation is highly recommended.
rich set of features that is av
ai
lable with the PHP intl extension, so its installation is highly recommended.
The
[
PHP intl extension
](
http://php.net/manual/en/book.intl.php
)
is based on the
[
ICU library
](
http://site.icu-project.org/
)
which
provides the knowledge and formatting rules for all the different locales. According to this fact the formatting of dates and numbers
...
...
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