- Class name: TranslateCore
- Source: classes/Translate.php line 30
- checkAndReplaceArgs
- getAdminTranslation
- getGenericAdminTranslation
- getModuleTranslation
- getPdfTranslation
- smartyPostProcessTranslation
string TranslateCore::checkAndReplaceArgs($string, $args)
Check if string use a specif syntax for sprintf and replace arguments if use it
- Visibility: public
- This method is static.
- Source: classes/Translate.php line 234
- $string mixed
- $args mixed
string TranslateCore::getAdminTranslation($string, string $class, boolean $addslashes, boolean $htmlentities, $sprintf)
Get a translation for an admin controller
- Visibility: public
- This method is static.
- Source: classes/Translate.php line 41
- $string mixed
- $class string
- $addslashes boolean
- $htmlentities boolean
- $sprintf mixed
string TranslateCore::getGenericAdminTranslation($string, null $key, $lang_array)
Return the translation for a string if it exists for the base AdminController or for helpers
- Visibility: public
- This method is static.
- Source: classes/Translate.php line 96
- $string mixed - string to translate
- $key null - md5 key if already calculated (optional)
- $lang_array mixed - global array of admin translations
string TranslateCore::getModuleTranslation(string|\Module $module, string $string, string $source, $sprintf, $js)
Get a translation for a module
- Visibility: public
- This method is static.
- Source: classes/Translate.php line 122
- $module string|string
- $string string
- $source string
- $sprintf mixed
- $js mixed
string TranslateCore::getPdfTranslation(string $string)
Get a translation for a PDF
- Visibility: public
- This method is static.
- Source: classes/Translate.php line 200
- $string string
mixed TranslateCore::smartyPostProcessTranslation($string, $params)
Perform operations on translations after everything is escaped and before displaying it
- Visibility: public
- This method is static.
- Source: classes/Translate.php line 249
- $string mixed
- $params mixed