|
WebLogic Server 6.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).
Catalogs included with this example are English (the default) and French. The catalog source files can be found here:
English(default) ../msgcat/Helloworld.xml French ../msgcat/fr/FR/HelloWorld.xmlThe following sections describe how to build, configure, and display the example.
To build this example, run the appropriate script from the examples/i18n/simple directory:
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). Use the Message Editor to display the internationalized text that is built for this example. To start the Message Editor:
classTextFormatter
|
Documentation is available at http://e-docs.bea.com/wls/docs60 |