tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28850] - StringManager does not format using the appropriate locale
Date Tue, 11 May 2004 22:10:23 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28850>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28850

StringManager does not format using the appropriate locale





------- Additional Comments From jan.luehe@sun.com  2004-05-11 22:10 -------
Stephane is right:

- We need to determine the *actual* locale by calling getLocale() on the
  resource bundle that was retrieved. This locale may be different from the
  locale that was requested. In the "worst" case (ie., if
  "LocalStrings.properties" was the best match for the requested locale,
  getLocale() will return the empty locale.

- The try/catch (for MissingResourceException) seems to be redundant, as
  "LocalStrings.properties" will be matched in the "worst" case.

Committed corresponding patch.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message