BEA Server Server User Manual


 
Message Catalog Formats
Internationalization Guide 2-13
Simple Text Catalog Example
The following example shows a simple text catalog, MyUtilLabels.xml, with one
text definition.
Listing 2-3 Example of a Simple Text Catalog
<?xml version="1.0"?>
<!DOCTYPE message_catalog PUBLIC "weblogic-message-catalog-dtd"
"
http://www.bea.com/servers/wls700/dtd/msgcat.dtd">
<message_catalog>
l10n_package="programs.utils"
i18n_package="programs.utils"
subsystem="MYUTIL"
version="1.0"
<message>
messageid="FileMenuTitle"
<messagebody>
File
</messagebody>
</message>
</message_catalog>
Element Parent
Element
Required/
Optional
Description
messagebody message
Required The text associated with the message.
This element may contain zero or more
placeholders {n} that will be replaced by the
appropriate arguments when the log message is
localized.