Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-4916

Isolate i18n locale-switching

XMLWordPrintable

      Several related issues:

      1.) web_set_locale should probably set only LC_MESSAGES, if we can get away with it
      2.) _set_language should be called once per request, not once per translated string
      3.) the locale should be reset to (probably) en_US after translation is done (hopefully, after templates are rendered will do), so we don't mess with any other perl code that might be (probably unintentionally) locale-dependent, such as http://pastie.org/4125293 in catalyst (the %f in sprintf uses LC_NUMERIC, breaking the numeric usage of the variable later).

            ianmcorvidae Ian McEwen
            ianmcorvidae Ian McEwen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                Bug fixes, 2012-07-23