[ 
http://www.stripesframework.org/jira/browse/STS-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Frederic Daoud closed STS-619.
------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: Release 1.5.2)

> DefaultLocalePicker - default locale selection
> ----------------------------------------------
>
>                 Key: STS-619
>                 URL: http://www.stripesframework.org/jira/browse/STS-619
>             Project: Stripes
>          Issue Type: Bug
>    Affects Versions: Release 1.5
>            Reporter: Jan Moravec
>            Priority: Minor
>             Fix For: Release 1.6
>
>
> Hello,
> I have just bumped into a case when I have two configured 
> (LocalePicker.Locales) locales: cs_CZ, sk_SK and Stripe's DefaultLocalePicker 
> engaged in web.xml.
> All is sweet, but the only gotcha is when the browser does NOT send the 
> accept-language header (probably quite rare, but can happen). In this case 
> the DLP returns the system's default locale. 
> Although this might be a documented behavior, would not it actually make much 
> more sence (because it is more intuitive) to return the first locale in the 
> LocalePicker.Locales preference list? The reasoning is, "what is more 
> important - a rather uncertain system locale, or a locale that is explicitly 
> specified in the configuration"?
> The interesting thing is that when the accept-language header IS provided and 
> there is no match between accept-language locales and LocalePicker.Locales 
> locales, then DLP picks the first locale in the LocalePicker.Locales list. 
> This is IMO inconsistent because no "accept-language locales" and "no 
> matching accept-language locales" should be treated identically.
> Thanks,
> Jan

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to