On Thu, 9 Aug 2001, Rajan Gupta wrote:
> I believe that Application Resource file is used for getting internalized
> messages for text to be displayed on the screen. How do we specify
> different application resources depending upon locale to be picked up. Can
> we specify multiple application resources for ActionServlet init.
> I believe the answer is in MessageTag but do not know how to use the
> international feature the way it is intended to be used.
>
You only need to specify one base name, but provide multiple files with
the various translations for each Locale:
ApplicationResources.properties Default locale
ApplicationResources_es.properties Spanish
ApplicationResources_fr.properties French
ApplicationResources_en_GB.properties British English
(who don't always know
how to spell :-)
and so on.
> Can somebody throw in some pointers to any documents?
>
Check out the JavaDocs for java.util.ResourceBundle, and the section on
Internationalization in the JDK Documentation Set. Even though Struts
doesn't use ResourceBundles internally, the resource files are handled the
same way.
> Thanks
> Rajan
>
Craig McClanahan