Свойство | Тип | Описание | |
---|---|---|---|
$cldrBasePath | string | An absolute path to the directory where CLDR resides. It is changed only in tests. | |
$localizationService | |||
$models | array |
This is an associative array with pairs as follow: ['path']['locale'] => $model, where 'path' is a file or directory path and 'locale' is a Locale object. For models representing one CLDR file, the 'path' points to a file and 'locale' is not used. For models representing few CLDR files connected with hierarchical relation, 'path' points to a directory where files reside and 'locale' is used to define which files are included in the relation (e.g. for locale 'en_GB' files would be: root + en + en_GB). |
Метод | Описание | |
---|---|---|
getModel ( string $filename ) : |
Returns an instance of CldrModel which represents CLDR file found under specified path. | |
getModelForLocale ( |
Returns an instance of CldrModel which represents group of CLDR files which are related in hierarchy. | |
injectLocalizationService ( |
Метод | Описание | |
---|---|---|
findLocaleChain ( |
Returns absolute paths to CLDR files connected in hierarchy |
protected findLocaleChain ( |
||
$locale | A locale | |
$directoryPath | string | Relative path to existing CLDR directory which contains one file per locale (see 'main' directory in CLDR for example) |
Результат | array |
public getModelForLocale ( |
||
$locale | A locale | |
$directoryPath | string | Relative path to existing CLDR directory which contains one file per locale (see 'main' directory in CLDR for example) |
Результат | A CldrModel instance or NULL on failure |
public injectLocalizationService ( |
||
$localizationService | ||
Результат | void |
protected string $cldrBasePath | ||
Результат | string |
protected Service,Neos\Flow\I18n $localizationService | ||
Результат |
protected array |
||
Результат | array |