Uploaded image for project: 'SWORD'
  1. SWORD
  2. API-61

LocaleMgr: Unable to go back to default locale "en_US"

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.5.8
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Environment:

      Sword 1.5.8.

      Description

      In 1.5.8 it's impossible to do something like this:

      LocaleMgr::getSystemLocaleMgr()->setDefaultLocaleName("de");
      LocaleMgr::getSystemLocaleMgr()->setDefaultLocaleName("en_US");

      The second call leaves the de locale set. There's no way to set the english locale back.
      Frontends (esp. BibleTime get mixed up by this.

      (I think the logic way is to create a locale object for en_US and offer it as a normal SWLocale.)

        Attachments

          Activity

            People

            • Assignee:
              glasseyes Daniel Glassey
              Reporter:
              jansorg Joachim Ansorg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: