|
WebLogic Server 6.0 Code Examples, BEA Systems, Inc. | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.i18n.simple.HelloWorld
This example shows various ways of internationalizing an application using simple message catalogs.
Usage: java examples.i18n.simple.HelloWorld [lang [country]]
lang is a 2 character ISO language code. e.g. "en" country is a 2 character ISO country code. e.g. "US"
Usage of any of the languages supported by this example presumes the existence of the appropriate OS localization software and character encodings.
The example comes with catalogs for English (the default) and French. The catalog source is in the following files, and were built using the catalog editing utility, weblogic.i18ntools.gui.MessageEditor.
English(base language) ../msgcat/Helloworld.xml French ../msgcat/fr/FR/HelloWorld.xml
To build this example run the build.sh(UNIX) or build.cmd (NT) scripts from the examples/i18n/simple directory. CLIENT_CLASSES must be set up and needs to be in the classpath when running the example.
Constructor Summary | |
HelloWorld()
|
Method Summary | |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public HelloWorld()
Method Detail |
public static void main(java.lang.String[] args)
|
Documentation is available at http://e-docs.bea.com/wls/docs60 |
|||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |