Document Tree
Document Properties
Kbid
24C768
Last Modified
04-Feb-2020
Added to KB
20-Jun-2013
Public Access
Everyone
Status
Online
Doc Type
References
Product
  • ICM 7.10
  • ICM 11
  • ICM 12
ISML Function - localizeText()

Name

localizeText()

Short Description

returns the plain text behind a given language neutral key

Table of Contents

Product Version

6.5

Product To Version

 

StatusNew Labels

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.

Syntax

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

Example

Localization.java
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);

Parameters

The function accepts the following arguments:

key

key = string
a unique key for a translation

locale

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

site

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

Reference - ISML Functions

Disclaimer
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.
The Intershop Knowledge Portal uses only technically necessary cookies. We do not track visitors or have visitors tracked by 3rd parties. Please find further information on privacy in the Intershop Privacy Policy and Legal Notice.
Home
Knowledge Base
Product Releases
Log on to continue
This Knowledge Base document is reserved for registered customers.
Log on with your Intershop Entra ID to continue.
Write an email to supportadmin@intershop.de if you experience login issues,
or if you want to register as customer.