Package DE_EPAGES::Test::API::TranslationJS
Checks translation files (de/en) for correct encoding: iso-8859-1
Base |
DE_EPAGES::Test::API::StoreUnitTest |
Functions
CheckGeneralUseOfDictionaries
Check the general use of dictionaries in js modules.
Syntax |
CheckGeneralUseOfDictionaries($hJS2Dict, $hDicts); |
Input |
|
CheckMissingTranslations
Check if js module and module template use unknown translation.
Syntax |
CheckMissingTranslations($hJS2Dict, $hDicts, $hCompleteDicts); |
Input |
|
CheckTranslationList
Applies to the ePages JavaScript API, based on jQuery. If a JS module uses a function call to our dictionary like: this.dict.translate(...) the module MUST contain a declaration of the used language tags like: /* * @dictionary ep.dict * * @translation * {Today} * {Done} */
Syntax |
CheckTranslationList($rContent); |
Example |
if(!$CheckTranslationList($rFileContent)) { print "error ..."; } |
Input |
|
Return |
|
CheckUnUsedTranslations
Check if dictionaries have unnecessary translation.
Syntax |
CheckUnUsedTranslations($hJS2Dict, $hDicts, $hCompleteDicts); |
Input |
|