|
WebLogic Server 7.0 Code Examples, BEA Systems, Inc. | |||||
See:
Description
| Class Summary | |
| HelloWorld | This example shows various ways of internationalizing an application using simple message catalogs. |
This example shows various ways of internationalizing an application using simple message catalogs. Using any of the languages supported by this example requires the appropriate operating system localization software and character encodings. The package that contains this example is:
java examples.i18n.simple.HelloWorld [lang [country]]
where lang is a two-character ISO language code (for example, en for English) and country is a two-character ISO country code (for example, US for the United States). The following sections describe how to build, configure, and display the example.
We provide a build script for you to build the example, called build.xml.
The script builds the example and places the files in the correct locations in your WebLogic Server distribution.
CLIENT_CLASSES must be set up and needs to be in the CLASSPATH when running the example.
The catalogs used in this example were built using the Message Editor catalog editing utility (weblogic.i18ntools.gui.MessageEditor). Catalogs included with this example are English (the default) and French. The catalog source files can be found here:
English(default) WL_HOME\samples\examples\i18n\msgcat\Helloworld.xml French WL_HOME\samples\examples\i18n\msgcat\fr\Fr\HelloWorld.xmlUse the Message Editor to display the internationalized text that is built for this example. To start the Message Editor:
java weblogic.i18ntools.gui.MessageEditor
|
Documentation is available at http://e-docs.bea.com/wls/docs70 |
|||||