Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-9261

Handle only labels with the "_" separator between languages and countries

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 17.12.01, 16.11.02
    • Component/s: framework
    • Labels:
      None

      Description

      I explained that in the second message in this dev ML thread https://s.apache.org/S3Ao

      This is handled in LabelManagerFactory.java

                                  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('_', '-');
                                  }
      

      I'll replace this snippet by throwing an exception in order to now to automatically detect issues

        Attachments

          Activity

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              jacques.le.roux Jacques Le Roux
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: