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

Better language negotiation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5 M1
    • Component/s: Localization, {Unused} Core
    • Labels:
      None
    • Tests:
      Unit
    • Similar issues:

      Description

      Improve the automatic language selection from the Accept-Language header:

      • don't parse the Accept-Language header, but use the ServletRequest#getLocales() method that does that
      • take into consideration preference quantifier
      • ignore invalid values
      • ability to restrict to one of the configured languages only

        Attachments

          Activity

            People

            Assignee:
            sdumitriu Sergiu Dumitriu
            Reporter:
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: