From 5217d01b77188d79387bb7fa333e5349f66a8efe Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 30 Oct 2013 09:12:27 -0400 Subject: [PATCH] [1.6.x] Fixed #21347 -- Added missing JS variable declaration. Thanks szymon.barglowski at gmail.com for the report. Backport of 0b1d425a41 from master --- django/views/i18n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/views/i18n.py b/django/views/i18n.py index 71ac005855d..f8544471192 100644 --- a/django/views/i18n.py +++ b/django/views/i18n.py @@ -98,7 +98,7 @@ js_catalog_template = r""" }; django.ngettext = function (singular, plural, count) { - value = django.catalog[singular]; + var value = django.catalog[singular]; if (typeof(value) == 'undefined') { return (count == 1) ? singular : plural; } else {