> From: Martin Gainty [mailto:mgainty@(protected)]
> Subject: Re: Configurable Errors
>
> ResourceBundle.getResource("errors") will get errors.properties
> language and country is self-explanatory..
>
> variant is either
> WIN for Windows, MAC for Macintosh, and POSIX for POSIX
>
> The order to locate the resources properties file on your
> classpath is ..
> a.. baseName + "_" + language1 + "_" + country1 + "_" + variant1
> b.. baseName + "_" + language1 + "_" + country1
> c.. baseName + "_" + language1
> d.. baseName + "_" + language2 + "_" + country2 + "_" + variant2
> e.. baseName + "_" + language2 + "_" + country2
> f.. baseName + "_" + language2
> g.. baseName
>
> (of course .properties is appended at end of the construct)
Examples of the use of the above (without the platform variants) can be
found within Tomcat itself. The various language-specific .properties
files are packaged in jars in common/i18n; these are accessed through
various StringManager classes such as:
apache-tomcat-5.5.20-src/container/catalina/src/share/org/apache/naming/
StringManager.java
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)