ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OFBIZ-9261) Handle only labels with the "_" separator between languages and countries
Date Wed, 15 Mar 2017 14:01:41 GMT

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

Jacques Le Roux updated OFBIZ-9261:
-----------------------------------
    Fix Version/s: 16.11.02
       Issue Type: Bug  (was: Improvement)

> Handle only labels with the "_" separator between languages and countries
> -------------------------------------------------------------------------
>
>                 Key: OFBIZ-9261
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9261
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: Upcoming Release, 16.11.02
>
>
> I explained that in the second message in this dev ML thread https://s.apache.org/S3Ao
> This is handled in LabelManagerFactory.java
> {code}
>                             Element valueElem = (Element) valueNode;
>                             // Support old way of specifying xml:lang value.
>                             // Old way: en_AU, new way: en-AU
>                             String localeName = valueElem.getAttribute("xml:lang");
>                             if( localeName.contains("_")) {
>                                 localeName = localeName.replace('_', '-');
>                             }
> {code}
> I'll replace this snippet by throwing an exception in order to now to automatically detect
issues



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

Mime
View raw message