BEA WebLogic Server User Manual Page 80

  • Download
  • Add to my manuals
  • Print
  • Page
    / 88
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 79
D TextFormatter Class Reference for BEA WebLogic Server
D-4 Internationalization Guide
datelastchanged="967578755587"
method="subSystem(String sub)"
>
<messagebody>
Catalog subsystem: {0}
</messagebody>
</message>
</message_catalog>
Listing 4-4 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.
* <p>
* Usage: java examples.i18n.simple.HelloWorld [lang [country]]
* <p>
* lang is a 2 character ISO language code. e.g. "en"
* country is a 2 character ISO country code. e.g. "US"
* <p>
* Usage of any of the languages supported by this example presumes
* the existence of the appropriate OS localization software and
character
* encodings.
* <p>
* The example comes with catalogs for English (the default) and
French.
* The catalog source is in the following files, and were built
Page view 79
1 2 ... 75 76 77 78 79 80 81 82 83 84 85 86 87 88

Comments to this Manuals

No comments