[jira] [Updated] (SLING-2536) JcrResourceBundle breaks the contract of getLocale

2017-03-29 Thread Konrad Windszus (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-2536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konrad Windszus updated SLING-2536:
---
Component/s: i18n

> JcrResourceBundle breaks the contract of getLocale
> --
>
> Key: SLING-2536
> URL: https://issues.apache.org/jira/browse/SLING-2536
> Project: Sling
>  Issue Type: Bug
>  Components: Extensions, i18n
>Affects Versions: i18n 2.2.2
>Reporter: Endolf
>
> The javadoc for getLocale state that it should return the locale of this 
> bundle or the locale of the fallback. Currently JcrResourceBundle always 
> returns the requested locale even if there is no mix:language for that locale.
> e.g. Only a mix:language with a jcr:language en is in the jcr, a request for 
> a resource bundle of sv will return a ResourceBundle object where getLocale 
> returns sv. This should return en according to the javadoc.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (SLING-2536) JcrResourceBundle breaks the contract of getLocale

2013-02-22 Thread Carsten Ziegeler (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-2536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler updated SLING-2536:


Component/s: Extensions

 JcrResourceBundle breaks the contract of getLocale
 --

 Key: SLING-2536
 URL: https://issues.apache.org/jira/browse/SLING-2536
 Project: Sling
  Issue Type: Bug
  Components: Extensions
Affects Versions: i18n 2.2.2
Reporter: Endolf

 The javadoc for getLocale state that it should return the locale of this 
 bundle or the locale of the fallback. Currently JcrResourceBundle always 
 returns the requested locale even if there is no mix:language for that locale.
 e.g. Only a mix:language with a jcr:language en is in the jcr, a request for 
 a resource bundle of sv will return a ResourceBundle object where getLocale 
 returns sv. This should return en according to the javadoc.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira