Ticket #3594: jsi18n.patch

File jsi18n.patch, 553 bytes (added by angelolaub@…, 14 years ago)

Fixed bug in the locale catalog assignment routine that caused it to always select the fallback language (misuse of dict.update())

  • msupport/django/r9232/django/views/i18n.py

    diff --git a/msupport/django/r9232/django/views/i18n.py b/msupport/django/r9232/django/views/i18n.py
    index 0107bc2..60f0279 100644
    a b def javascript_catalog(request, domain='djangojs', packages=None): 
    145145            except IOError:
    146146                catalog = None
    147147            if catalog is not None:
    148                 t.update(catalog._catalog)
     148                t = catalog._catalog
    149149    src = [LibHead]
    150150    plural = None
    151151    if '' in t:
Back to Top