ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Holds the CLDR data. More...
Static Public Member Functions | |
static | getLanguageNames () |
Returns a dictionary containing the language names. More... | |
static | getTerritoryNames () |
Return a dictionary containing the territory names (in US English). More... | |
static | getScriptNames ($standAlone) |
Return a dictionary containing the script names (in US English). More... | |
static | getPlurals () |
static | getSupersededLanguages () |
Return a list of superseded language codes. More... | |
static | getLanguageInfo ($id) |
Retrieve the name of a language, as well as if a language code is deprecated in favor of another language code. More... | |
Data Fields | |
const | OTHER_CATEGORY = 'other' |
Static Public Attributes | |
static | $categories = array('zero', 'one', 'two', 'few', 'many', self::OTHER_CATEGORY) |
Static Private Member Functions | |
static | getData ($key) |
Returns the loaded CLDR data. More... | |
Static Private Attributes | |
static | $data |
static | $plurals |
Holds the CLDR data.
Definition at line 9 of file CldrData.php.
|
staticprivate |
Returns the loaded CLDR data.
string | $key | Can be 'languages', 'territories', 'plurals', 'supersededLanguages', 'scripts', 'standAloneScripts' |
Definition at line 30 of file CldrData.php.
References Gettext\Languages\CldrData\$data, $data, $key, $list, $m, and $result.
Referenced by Gettext\Languages\CldrData\getLanguageNames(), Gettext\Languages\CldrData\getPlurals(), Gettext\Languages\CldrData\getScriptNames(), Gettext\Languages\CldrData\getSupersededLanguages(), and Gettext\Languages\CldrData\getTerritoryNames().
|
static |
Retrieve the name of a language, as well as if a language code is deprecated in favor of another language code.
string | $id | The language identifier. |
Definition at line 199 of file CldrData.php.
References $id, Gettext\Languages\CldrData\$plurals, $result, Gettext\Languages\CldrData\getLanguageNames(), Gettext\Languages\CldrData\getPlurals(), Gettext\Languages\CldrData\getScriptNames(), Gettext\Languages\CldrData\getSupersededLanguages(), and Gettext\Languages\CldrData\getTerritoryNames().
Referenced by Gettext\Languages\Language\getAll(), and Gettext\Languages\Language\getById().
|
static |
Returns a dictionary containing the language names.
The keys are the language identifiers. The values are the language names in US English.
Definition at line 140 of file CldrData.php.
References Gettext\Languages\CldrData\getData().
Referenced by Gettext\Languages\Language\getAll(), and Gettext\Languages\CldrData\getLanguageInfo().
|
static |
Definition at line 182 of file CldrData.php.
References Gettext\Languages\CldrData\getData().
Referenced by Gettext\Languages\CldrData\getLanguageInfo().
|
static |
Return a dictionary containing the script names (in US English).
The keys are the script identifiers. The values are the script names in US English.
bool | $standAlone | Set to true to retrieve the stand-alone script names, false otherwise. |
Definition at line 161 of file CldrData.php.
References Gettext\Languages\CldrData\getData().
Referenced by Gettext\Languages\CldrData\getLanguageInfo().
|
static |
Return a list of superseded language codes.
Definition at line 190 of file CldrData.php.
References Gettext\Languages\CldrData\getData().
Referenced by Gettext\Languages\CldrData\getLanguageInfo().
|
static |
Return a dictionary containing the territory names (in US English).
The keys are the territory identifiers. The values are the territory names in US English.
Definition at line 150 of file CldrData.php.
References Gettext\Languages\CldrData\getData().
Referenced by Gettext\Languages\CldrData\getLanguageInfo().
|
static |
Definition at line 20 of file CldrData.php.
Referenced by Gettext\Languages\Category\__construct(), and Gettext\Languages\Language\__construct().
|
staticprivate |
Definition at line 25 of file CldrData.php.
Referenced by Gettext\Languages\CldrData\getData().
|
staticprivate |
Definition at line 168 of file CldrData.php.
Referenced by Gettext\Languages\CldrData\getLanguageInfo().
const Gettext\Languages\CldrData::OTHER_CATEGORY = 'other' |
Definition at line 15 of file CldrData.php.
Referenced by Gettext\Languages\Category\__construct(), Gettext\Languages\Language\__construct(), Gettext\Languages\Language\checkAllCategoriesWithExamples(), and Gettext\Languages\Language\checkAlwaysTrueCategories().