ISML Function - localizeText()



Short Description

returns the plain text behind a given language neutral key

Table of Contents

Product Version


Product To Version



1 Introduction

These functions are used to localize an attribute value of a (possibly custom) ISML tag. For that purpose localizeText()returns the plain text behind a given language neutral key.
The very similar function localizeTextEx() supports an additional parameter that allows to assign an array of objects to be injected into the translation.

2 Syntax

localizeText(key : String) : String
localizeText(key : String, locale : String) : String
localizeText(key : String, locale : String, site : Domain) : String

3 Example
Domain domain = NamingMgr.getManager(DomainMgr.class).getDomainByName("eTest");
LocaleInformation enUS = NamingMgr.getManager(LocaleMgr.class).getLocaleBy("en_US");
LocalizationProvider localizationProvider = NamingMgr.getProvider(LocalizationProvider.class);
localizationProvider.localizeText(anyKey, en_US, domain);

4 Parameters

The function accepts the following arguments:

4.1 key

key = string
a unique key for a translation

4.2 locale

locale = string
an optional parameter to get the translation in a specific locale

4.3 site

site = string
an optional parameter indicating for which site the translated text should be presented

Reference - ISML Functions


The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

Customer Support
Knowledge Base
Product Resources
Support Tickets