Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
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:
- The default locale will not be English anymore, but rather ROOT as a language-agnostic one.
- 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
- fixes
-
MSITE-626 Iternazionalization element just uses the language part of specified locales
- Closed
- is depended upon by
-
MSITE-639 sub-project tries to fetch a site_en.xml even though no locales are configured
- Closed
-
MSITE-827 Site builds rely on HTTP 404
- Closed
-
MSITE-904 Unable to generate zh_TW locale of site document
- Closed
-
MSITE-820 Change localized output from language to full locale, like source
- Closed
- relates to
-
MSITE-225 Internationalization does not seem to work with site:run
- Closed
- links to