Метод |
Описание |
|
__construct ( Jarves $jarves, Cacher $cacher, Filesystem $webFilesystem, Filesystem $cacheFilesystem ) |
Translator constructor. |
|
getLanguage ( $file ) |
|
|
getPluralForm ( $lang, $onlyAlgorithm = false ) |
|
|
getPluralJsFunctionFile ( $lang ) : string |
|
|
getPluralPhpFunctionFile ( $lang ) |
|
|
getUtils ( ) : Utils |
|
|
isValidLanguage ( string $lang ) : boolean |
Check whether specified pLang is a valid language |
|
loadMessages ( string $lang = 'en', boolean $force = false ) : array | null | string |
|
|
t ( $id, $plural = null, $count, $context = null ) |
|
|
tc ( $context, $id, $plural = null, $count ) |
|
|