BEA WebLogic Server User Manual
Page 80
![background image](/manuals/57198/80/background.png)
D
TextFormatter Class Reference for BEA WebLogic Server
D-4
Internationalization Guide
datelastchanged="967578755587"
method="subSystem(String sub)"
>
Catalog subsystem: {0}
shows an example of an application using the HelloWorld catalog.
Listing 4-4 Example of an Application Using the HelloWorld Catalog
package examples.i18n.simple;
import java.util.Locale;
import java.text.MessageFormat;
import weblogic.i18n.Localizer;
import weblogic.i18ntools.L10nLookup;
/**
* @author Copyright (c) 2000 by BEA Systems, Inc. All Rights
Reserved.
*/
/**
* 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