Details
-
Bug
-
Resolution: Outdated
-
Minor
-
None
-
2.1.5
-
None
-
n/a
Description
I have a multi-language site featuring one root page ("web") and several sub page for each supported language ("web/de", "web/fr"). I've written code to set the locale for the <fmt> tags of JSTL once a user switches the language:
Config.set(request.getSession(), Config.FMT_LOCALE, new Locale(desiredLanguage));
Like this, you may properly use .e.g the date formatting and parsing tags inside the templates
But a call to Config.set() also causes the user language in the AdminCentral interface to switch. If an author e.g. switches to the french language tree, the user language of AdminCentral is also switched to French, since the implementation of AdminCentral uses the same mechanism. The locale settings of AdminCentral and should be separated from the locale settings of the pages it administers.
Is there a standard mechanism for this? Can you define "locale namespaces"?