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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Trunk
    • 16.11.02, 17.12.01
    • framework
    • 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

            jleroux Jacques Le Roux
            jleroux Jacques Le Roux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: