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

          Hide
          scribe Troy A Griffitts added a comment -

          It looks like this issue is fixed. I attempted to set the locale to "de", create a VerseKey, parse some data, set the locale to "en_US", create a VerseKey, parse some data. All was fine. I then tried the same test with "en" and it worked, as well. Not sure when it was fixed, but can't reproduce now.

          Show
          scribe Troy A Griffitts added a comment - It looks like this issue is fixed. I attempted to set the locale to "de", create a VerseKey, parse some data, set the locale to "en_US", create a VerseKey, parse some data. All was fine. I then tried the same test with "en" and it worked, as well. Not sure when it was fixed, but can't reproduce now.

            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: