From 0b1d425a4128928291bfaa2c2582e715ef60937d Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 30 Oct 2013 09:12:27 -0400 Subject: [PATCH] Fixed #21347 -- Added missing JS variable declaration. Thanks szymon.barglowski at gmail.com for the report. --- 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 2623a00d6a..9ede1ed49f 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 {