Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.getLocaleString
Returns a locale-specific string.
Syntax
public String getLocaleString(String sName, String sLocale);Parameters
sName
- A key in the SystemLocaleString database table.
sLocale
- Locale of the string (for example,
en_US
orfr_CA
).
Returns
The locale-specific message associated with the specified
sName
.Description
Call
getLocaleString
to access a locale-specific string from the SystemLocaleString database table. This database table holds all the strings that CS displays. An overly simplified version of the table looks as follows:
Table 4: Simplified View of SystemLocaleString Table
id key locale Message100000
continue
en_US
Continue
100001
continue
fr_FR
Continuez
100002
stop
en_US
Stop now.
100003
stop
fr_FR
Arrêt maintenant.
Example
Using the preceding table, you would access the
stop
message appropriate for the French in France locale through the following code:
String sName = "stop"; String sLocale = "EN-US"; String Message = ics.getLocaleString(sName, sLocale);
Home > Contents > Index > ![]()
FatWire JAVA Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.