<locale> <language>fr</language> <country>FR</country> </locale>
language
is a lowercase two-letter ISO-639 code.
country
is an uppercase two-letter ISO-3166 code.
java.util.Locale
for more information on locale arguments.
IlpContext context = new IltDefaultContext(Locale.FRENCH);
en_US
locale. To create a localized version for another language, do
the following:
jviews-tgo-all.jar
:
ilog/cpl/messages/EquipmentMessages.properties
ilog/tgo/messages/JTGOMessages.properties
ilog/cpl/messages/NetworkMessages.properties
ilog/cpl/messages/TableMessages.properties
java.util.PropertyResourceBundle
.
Locale locale = context.getLocale(); ResourceBundle bundle = IlpI18NUtil.GetResourceBundle("ilog.tgo.messages.JTGOMessages", locale, "JViews TGO"); String value = bundle.getString("ilog.tgo.Alarm_Critical");
'resource'
( IlpResourceFunction) as illustrated below:
object."ilog.tgo.model.IltAlarm/perceivedSeverity"[perceivedSeverity=Critical] { label : '@|resource("ilog.tgo.messages.JTGOMessages", "ilog.tgo.Alarm_Critical", "Critical")'; }