Commits

hu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 3da08eb

fixes bug with blocktrans and parameters not actually doing the translation (thx. nesh for the report)

  • Participants
  • Parent commits 0a7d9e8

Comments (0)

Files changed (1)

File django/templatetags/i18n.py

         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