Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-9843

Failure to save translations for legacy languages using REST

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 5.4-milestone-1
    • 5.3
    • REST
    • None
    • Integration
    • Unknown
    • N/A
    • N/A

    Description

      The problem is that we're now using Locale in XWikiDocument but in our REST code we convert from String to Locale and then back to String which causes issue when using one of the 3 legacy language codes. Here's an excerpt from the JDK's JavaDoc:

      Locale's constructor has always converted three language codes to their earlier, obsoleted forms: he maps to iw, yi maps to ji, and id maps to in.

      So for example: new Locale("he").toString() != "he"

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: