ePages 6.17.43 - DE_EPAGES/DHLIntraship/API/TranslationOfDHLServices.pm

Package DE_EPAGES::DHLIntraship::API::TranslationOfDHLServices

This is the place for common DHL Intraship terms in german and english.

Functions

doTranslationToSave
new
toEnglish
toGerman

doTranslationToSave

takes one single service how it is used when the services are saved

Syntax
doTranslationToSave( $hService );
Input
$hService (refhash)
a service in struckture to save
Return
$hService (refhash)
the same service but translated to english

new

The constructor takes two not mandatory arguments too give an injection possibility for unit testing

Syntax
new( $MapOptionsGermanEnglish ,$MapServiceGroupGermanEnglish );
Input
$MapOptionsGermanEnglish (ref_hash)
Options translations
$MapServiceGroupGermanEnglish (ref_hash)
Group translations
Return
$ReturnVariable (ReturnType_boolean_integer_String_object_refhash_refarray)
ReturnDescription

toEnglish

to translate german options and Group names to englisch

Syntax
toEnglish( $aServices );
Input
$aServices (refarray)
All services which are selected in MBO
Return
$aServices (refarray)
same services but translated to english

toGerman

to translate english options and Group names to German

Syntax
toGerman( $aServices );
Input
$aServices (refarray)
All services which are use in the perl code
Return
$aServices (refarray)
same services but translated