message_catalog Element message Element

Using Message Catalogs with WebLogic Server 4-9

4.5.3 Example Simple Text Catalog

The following example shows a simple text catalog, MyUtilLabels.xml, with one simple text definition: messagebody File messagebody Example 4–3 Example of a Simple Text Catalog ?xml version=1.0? DOCTYPE message_catalog PUBLIC weblogic-message-catalog-dtd http:www.bea.comserverswls90dtdmsgcat.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

4.5.4 Elements of a Simple Text Catalog

This section provides reference information for the following simple text catalog elements: ■ Section 4.5.4.1, message_catalog Element ■ Section 4.5.4.2, message Element ■ Section 4.5.4.3, messagebody Element

4.5.4.1 message_catalog Element

The following table describes the attributes that you can define for the message_ catalog element. action log_message Optional The recommended resolution. This element can contain any argument place holders. Syntax: a String Example: actionThe user needs to gain appropriate authorization or learn to live with the default settings.action Element Parent Element Required Optional Description 4-10 Oracle Fusion Middleware Using Logging Services for Application Logging for Oracle WebLogic Server

4.5.4.2 message Element

The following table describes the attributes that you can define for the message element. Attribute Default Value Required Optional Description l10n_package weblogic.i18n Optional Java package containing generated TextFormatter classes and TextLocalizer properties for this catalog. The classes are named after the catalog file name. mycat.xml would have the properties file, l10n_ package .mycatLogLocalizer.prop erties generated. Syntax: standard Java package syntax Example: l10n_ package=programs.utils subsystem None Required An acronym identifying the subsystem associated with this catalog. The name of the subsystem is included in the server log and is used for message isolation purposes. Syntax: a String Example: subsystem=MYUTIL version None Required Specifies the version of the msgcat.dtd being used. The format is n.n, for example, version=1.0. Must be at least 1.0. Example: version=1.0 description Null Optional An optional attribute that documents the catalog content. Syntax: a String Example: description=Contains labels used in the foobar GUI Attribute Default Value Required Optional Description messageid None Required Unique identifier for this log message in alpha-numeric string format. Uniqueness is required only within the context of this catalog. message is a child element of message_ catalog . datelastchanged None Optional Datetime stamp useful for managing modifications to this message. Using Message Catalogs with WebLogic Server 4-11

4.5.4.3 messagebody Element