Internationalization (i18n) class.
package | Core |
---|---|
subpackage | i18n |
__(string $string, string $domain) : string
string
The string to translate
string
The domain to look up
string
Returns the translationemulateGettext(string $string, string $domain) : string
string
The string to translate
string
The domain to look up
string
Returns the translationgetCache() : array
array
getDomains() : array
array
getFiles() : array
array
getLanguage() : string | false
string
false
init(string $localePath, string $langCode)
string
Path to the locales
string
Language code to set
registerDomain(string $domain, string $localePath) : string
string
Domain to bind to
string
Path to the locales
string
Returns the translationreset()
translate(string $string, string $domain) : string
string
The string to translate
string
The domain to look up
\cException |
if this is the backend mode and the $belang is not set |
---|
string
Returns the translation_loadTranslationFile(string $translationFile) : string
string
string
The preparend translation file content$_i18nData : array