ePages 7.48.0 - DE_EPAGES/Presentation/API/TLE/LocaleHandler.pm

Package DE_EPAGES::Presentation::API::TLE::LocaleHandler

This package provides the TLE function "ChangeLocaleURL".

Functions

AddLanguageToUnitySfURL
ChangeLocaleURL

AddLanguageToUnitySfURL

Converts a given AltLanguageID to the fitting language code and adds this to the given URL if it is different to the given LanguageID. If the optional user is registered, a switch to that users language will be performed instead.

Syntax
#AddLanguageToUnitySfURL(#URL, #AltLanguageID, #LanguageID)
Input
#URL (string)
Unity storefront URL
#AltLanguageID (string)
language id
#LanguageID (string)
language id
#User (object)
(optional) User object
Return
#URL (string)
url with added locale

ChangeLocaleURL

Returns url with changed locale.

Syntax
#ChangeLocaleURL(#LocaleID)
Input
#LocaleID (string)
locale id
Return
#URL (string)
url with changed locale