cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10559] - [PATCH] parseLocale in I18nUtils.java
Date Tue, 09 Jul 2002 14:29:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10559>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10559

[PATCH] parseLocale in I18nUtils.java





------- Additional Comments From kpiroumian@protek.com  2002-07-09 14:29 -------
After a little thinking I came to conclusion that the best way is to add a pair of new 
methods that will take an extra argument containing delimiters.

If you are using LocaleAction to determine the user's locale then your patch won't 
help. LocaleAction uses request.getLocale() which returns Locale object. All the 
parsing is performed by the servlet container and we have no control over it.

For all the other needs you can use: 
parseLocale(localeString, delimiters);
parseLocale(localeString, delimiters, default);

Will this be enough?

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message