Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-825

Switching locale in mulit-language sites causes locale in AdminCentral to change

    XMLWordPrintable

Details

    • Bug
    • Resolution: Outdated
    • Minor
    • None
    • 2.1.5
    • admininterface
    • 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"?

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              weder Andreas Weder
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD