Anonymous avatar Anonymous committed 3da08eb

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

Comments (0)

Files changed (1)

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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.