summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-11-18 03:36:03 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-11-18 03:36:03 +0000
commit5f8cfe99f3d508cfd7f3eecf50d41a3ac7e7442a (patch)
tree784901894c70326e91ce6204b3c8f9c385c4e3f9 /django
parentce73298e26b903080ae1b7e67a1a9d1ec0c5108a (diff)
Fixed #5969 -- Corrected a problem introduced in [6682].
*sigh* As usual, the one case I forget to test turned out to be broken. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6689 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/templatetags/i18n.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/templatetags/i18n.py b/django/templatetags/i18n.py
index a2b7818eb5..b4438fdf42 100644
--- a/django/templatetags/i18n.py
+++ b/django/templatetags/i18n.py
@@ -73,7 +73,7 @@ class BlockTranslateNode(Node):
if self.plural and self.countervar and self.counter:
count = self.counter.resolve(context)
context[self.countervar] = count
- plural = self.render_token_list(self.plural)[0]
+ plural, vars = self.render_token_list(self.plural)
result = translation.ungettext(singular, plural, count)
else:
result = translation.ugettext(singular)