Uploaded image for project: 'Maven Doxia Sitetools'
  1. Maven Doxia Sitetools
  2. DOXIASITETOOLS-271

Overhaul locale support (make Locale#ROOT instead of Locale#ENGLISH default and use full locale)

    XMLWordPrintableJSON

Details

    Description

      The current locale setup has its flaws:

      • It forces you assume that the default locale is English which leads to problems that site_en.xml is often not found
      • Full locale cannot be used to create a localized site: only language is used, no country nor region: region is critical for example for Simplified chinese vs Traditional, see MSITE-904

      This overhaul will implement two changes:

      1. The default locale will not be English anymore, but rather ROOT as a language-agnostic one.
      2. One can provide a full locale and Doxia Sitetools will incrementally reduce the locale from variant down to root to find the most specific site descriptor, e.g., 'de_DE_BY', 'de_DE', 'de', ''. Assuming that the user has requested 'de_DE_BY' as in German in Germany, specifically in Bavaria.

      Both approaches apply the logic from ResouceBundle#getBundle().

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: