Localizer lookup class – BEA WebLogic Server User Manual
Page 61

Localizer Lookup Class
Internationalization Guide
A-3
The following list shows the severity values that are returned:
weblogic.logging.severities.EMERGENCY
weblogic.logging.severities.ALERT
weblogic.logging.severities.CRITICAL
weblogic.logging.severities.ERROR
weblogic.logging.severities.WARNING
weblogic.logging.severities.NOTICE
weblogic.logging.severities.INFO
weblogic.logging.severities.DEBUG
The specific strings returned are defined in the message catalogs.
The
key
argument to the
get*()
methods identify which element of a definition to
return. Acceptable values are defined in the
Localizer
class definition. The returned
text can be further expanded through
java.text.MessageFormat.format()
. The
message body
,
detail
,
cause
, and
action
elements are all localizable. The other
elements,
message ID
,
severity
, and
subsystem
are not localizable and do not
require further processing by
MessageFormat
.
Localizer Lookup Class
To obtain the correct
Localizer
for a message, use the
L10nLookup
class.
L10nLookup
is a Property class extension that is loaded at system startup from the
property file:
\weblogic\i18n\i18n.properties
This property file is created by
i18ngen
. Properties in the lookup file have the
following format:
nnnnnn=subsystem:Localizer class
The arguments on this line are defined as follows:
nnnnnn
is the message ID
subsystem
is the related subsystem