beautypg.com

BEA WebLogic Server User Manual

Page 83

background image

Example of an Application Using a TextFormatter Class

Internationalization Guide

D-7

Listing 4-5 Example of Generated TextFormatter Class for the HelloWorld
Catalog

"http://www.bea.com/servers/wls600/msgcat.dtd">

l10n_package="examples.i18n.simple"

subsystem="I18N"

version="1.0"

>

messageid="HELLO_WORLD"
datelastchanged="967575717875"
method="helloWorld()"
>

Hello World!


messageid="HELLO_AGAIN"
datelastchanged="967575717804"
method="helloAgain()"
>

Hello again


messageid="NTH_HELLO"
datelastchanged="967575770971"
method="nthHello(int count)"
>

This is hello number {0,number}.