Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixes bug with blocktrans and parameters not actually doing the trans…

…lation (thx. nesh for the report)

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5319f285a669c0012f07a37352dd6addd4da5509 1 parent 4decd32
Georg Bauer authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/templatetags/i18n.py
View
4 django/templatetags/i18n.py
@@ -62,11 +62,11 @@ def render(self, context):
context.push()
for var,val in self.extra_context.items():
context[var] = resolve_variable_with_filters(val, context)
- singular = self.render_token_list(self.singular) % context
+ singular = self.render_token_list(self.singular)
if self.plural and self.countervar and self.counter:
count = resolve_variable_with_filters(self.counter, context)
context[self.countervar] = count
- plural = self.render_token_list(self.plural) % context
+ plural = self.render_token_list(self.plural)
result = translation.ngettext(singular, plural, count) % context
else:
result = translation.gettext(singular) % context
Please sign in to comment.
Something went wrong with that request. Please try again.