[ https://issues.apache.org/jira/browse/DOXIASITETOOLS-271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed DOXIASITETOOLS-271. ----------------------------------------- Resolution: Fixed Fixed with [54338f42b27520a645fb728276318a4ded54dba7|https://gitbox.apache.org/repos/asf?p=maven-doxia-sitetools.git;a=commit;h=54338f42b27520a645fb728276318a4ded54dba7]. > Overhaul locale support (make Locale#ROOT instead of Locale#ENGLISH default > and use full locale) > ------------------------------------------------------------------------------------------------ > > Key: DOXIASITETOOLS-271 > URL: https://issues.apache.org/jira/browse/DOXIASITETOOLS-271 > Project: Maven Doxia Sitetools > Issue Type: Improvement > Components: Integration Tools, Site renderer > Reporter: Michael Osipov > Assignee: Michael Osipov > Priority: Major > Fix For: 2.0.0-M4 > > > 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()}}|https://docs.oracle.com/javase/8/docs/api/java/util/ResourceBundle.html#getBundle-java.lang.String-java.util.Locale-java.lang.ClassLoader-]. -- This message was sent by Atlassian Jira (v8.20.10#820010)