Home > Contents > 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_USorfr_CA).
Returns
The locale-specific message associated with the specified
sName.Description
Call
getLocaleStringto access a locale-specific string from the SystemLocaleString database table. This database table holds all the strings that Sites displays. An overly simplified version of the table looks as follows:
Table 4: Simplified View of SystemLocaleString Table
id key locale Message100000continueen_USContinue100001continuefr_FRContinuez100002stopen_USStop now.100003stopfr_FRArrêt maintenant.
Example
Using the preceding table, you would access the
stopmessage 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 > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.