bea.com | products | dev2dev | support | askBEA |
![]() |
![]() |
|
![]() |
e-docs > WebLogic Server > Internationalization Guide > Using the BEA WebLogic Server Message Editor |
Internationalization Guide
|
Using the BEA WebLogic Server Message Editor
The following sections describe how to use the Message Editor:
The Message Editor is a graphical interface tool that allows you to create, read, and write XML message catalogs. The Message Editor is installed when you install WebLogic Server. Optionally, you can also edit the XML catalogs directly in a text editor.
Note: The Message Editor does not support the editing of localized catalogs.
The Message Editor allows you to perform the following tasks:
The catalog currently being created or used in the Message Editor is the context catalog.
The catalog parsers (i18ngen or l10ngen) recognize character code references for special characters and convert them to the intended character, as shown in Table 3-1. The Message Editor recognizes the special characters and writes them back using the character code references. The parsers recognize no other character references.
Before you start the Message Editor, you should have installed and configured your WebLogic Server system and set your environment variables (setExamplesEnv.cmd). Make sure that your classpath is set correctly.
Sample message catalog files are located in your BEA_HOME\samples\wlserver7.0\samples\examples\i18n\msgcat directory.
Note: This directory path may vary, depending on where you chose to install WebLogic Server.
To start the Message Editor, type:
java weblogic.MsgEditor
or
java weblogic.i18ntools.gui.MessageEditor
The main WebLogic Message Editor window for Log Messages displays as shown in Figure 3-1.
Figure 3-1 WebLogic Message Editor for Log Messages
The following sections describe how to use the Message Editor to manage catalogs:
Browsing to an Existing Catalog
To find an existing catalog from the main WebLogic Message Editor window, enter the full pathname in the Message Catalog field, or click Browse and navigate to the existing catalog from the Open dialog.
The sample catalogs included with your WebLogic Server installation are in the BEA_HOME\samples\wlserver7.0\samples\examples\i18n\msgcat directory.
Note: This directory path may vary, depending on where you chose to install WebLogic Server.
Your user-defined catalogs may be located in any directory you designate.
Once the catalog has been located, the Packages, Subsystem, Version, Base ID, and End ID (if any) for that catalog are displayed, and that catalog is the context catalog in which all other actions are performed. You are now ready to enter new messages into that catalog, to edit existing messages, to search for a message, or to view all messages in the catalog.
If a log message catalog is selected in the Message catalog field, the WebLogic Message Editor window for Log Messages displays as shown in Figure 3-3.
Figure 3-3 WebLogic Message Editor for Log Messages
If a simple messages catalog is selected in the Message catalog field, the WebLogic Message Editor window for Simple Messages displays as shown in Figure 3-4.
Figure 3-4 WebLogic Message Editor for Simple Messages
To create a new catalog, complete the following procedure:
The "Create new catalog" dialog displays as shown in Figure 3-5.
The following sections describe how to use the Message Editor to add messages to catalogs:
To enter a new message into a log catalog, complete the following procedure:
logNoAuthorization(String arg0, java.util.Date arg1,
int arg2) logNote()
User {0} tried to access this on {1} but has no authority to do so. {2} lashes with a keyboard with coke spilled on it.
Entering a New Simple Text Message
To enter a simple text message into a simple messages catalog, complete the following procedure:
The WebLogic Message Editor for Simple Messages dialog displays as shown in Figure 3-7.
The following sections describe how to use the Message Editor to find messages:
To find a log message, complete the following procedure:
Figure 3-8 Search for Log Message
The fields are strung together to find the message. If a matching message is found, it displays in the main Message Editor window as shown in Figure 3-1.
To find a simple text message, complete the following procedure:
Figure 3-9 Search for Simple Message
The fields are strung together to find the message. If a matching message is found, it displays in the main Message Editor window as shown in Figure 3-4.
The WebLogic Message Editor contains a Message Viewer that allows you to view all messages in a catalog, view all messages in multiple catalogs, and choose any message to edit.
The following sections describe how to use the Message Viewer to view and choose messages to edit:
Viewing All Messages in a Catalog
To view all the messages in a catalog:
Viewing All Messages in Several Catalogs
If you view the messages from the current context catalog, and then change the context by clicking Browse on the WebLogic Message Editor main window to navigate to a new catalog, the old view of the old catalog remains on the screen while you view the new catalog in a second Message Viewer window. Repeating this step allows you to view messages for as many catalogs as you require (or can reasonably fit on your screen). Each catalog displays in a separate Message Viewer window. Refer to Browsing to an Existing Catalog for information about Browsing to a new catalog.
Choosing a Message to Edit from the Message Viewer
After you use the Message Viewer to view a list of messages, you can click on any message displayed in any row of the Message Viewer. The catalog for the selected message becomes the context catalog and the message displays in the Message Editor main window.
Figure 3-11 Message Viewer and Message Editor for Message 600002
To edit an existing message, complete the following procedure:
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |