WebLogic Server 6.0 Code Examples, BEA Systems, Inc.

examples.i18n.simple
Class HelloWorld

java.lang.Object
  |
  +--examples.i18n.simple.HelloWorld

public final class HelloWorld
extends java.lang.Object

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelloWorld

public HelloWorld()
Method Detail

main

public static void main(java.lang.String[] args)

Documentation is available at
http://e-docs.bea.com/wls/docs60

Copyright © 2000 BEA Systems, Inc. All Rights Reserved.