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
69acc8f0
Commit
69acc8f0
authored
Jul 21, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added missing GettextMessageSource phpdoc
parent
4abab7f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
GettextMessageSource.php
framework/yii/i18n/GettextMessageSource.php
+17
-0
No files found.
framework/yii/i18n/GettextMessageSource.php
View file @
69acc8f0
...
@@ -9,6 +9,23 @@ namespace yii\i18n;
...
@@ -9,6 +9,23 @@ namespace yii\i18n;
use
Yii
;
use
Yii
;
/**
* GettextMessageSource represents a message source that is based on GNU Gettext.
*
* Each GettextMessageSource instance represents the message tranlations
* for a single domain. And each message category represents a message context
* in Gettext. Translated messages are stored as either a MO or PO file,
* depending on the [[useMoFile]] property value.
*
* All translations are saved under the [[basePath]] directory.
*
* Translations in one language are kept as MO or PO files under an individual
* subdirectory whose name is the language ID. The file name is specified via
* [[catalog]] property, which defaults to 'messages'.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class
GettextMessageSource
extends
MessageSource
class
GettextMessageSource
extends
MessageSource
{
{
const
MO_FILE_EXT
=
'.mo'
;
const
MO_FILE_EXT
=
'.mo'
;
...
...
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