Public Member Functions | |
__construct ($langCode=null) | |
translateErrorMessage ($errorNumber, $replacements=[]) | |
Protected Member Functions | |
setLocale ($locale) | |
Protected Attributes | |
$translations | |
The Translator class.
__construct | ( | $langCode = null | ) |
Translator constructor.
null | string | $langCode |
|
protected |
Sets locale for translations.
string | $locale |
translateErrorMessage | ( | $errorNumber, | |
$replacements = [] |
|||
) |
Translates an error message for a given error code.
int | $errorNumber | error number |
array | $replacements | array of replacements to use in the translated message |