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 07:50:40 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

kpiroumian@protek.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED



------- Additional Comments From kpiroumian@protek.com  2002-07-09 07:50 -------
Michael,

I don't like depending on Regexp for such a simple task. Won't the same thing 
achieved by changing this line like this:
    private static final String LOCALE_DELIMITER   = "_@.-";
?

Could you please tell which browsers use @ and '.' in Accept-Language? I'll 
indicated that in JavaDocs. 

BTW, according to Servlet 2.3 specification and mentioned in it RFC 2616, 
request.getLocale() returns language codes that use '-' as separators and can 
contain an additional qualifier, e.g.:
en-GB;q=0.6. Can anybody confirm this? Or does servlet container remove those 
qualifiers?

Thanks for the patch, I'll correct the behavior as you've proposed.

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


Mime
View raw message