Changeset 1230
- Timestamp:
- 11/14/05 07:29:38 (3 years ago)
- Files:
-
- django/trunk/django/templatetags/i18n.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/templatetags/i18n.py
r1068 r1230 63 63 for var,val in self.extra_context.items(): 64 64 context[var] = resolve_variable_with_filters(val, context) 65 singular = self.render_token_list(self.singular) % context65 singular = self.render_token_list(self.singular) 66 66 if self.plural and self.countervar and self.counter: 67 67 count = resolve_variable_with_filters(self.counter, context) 68 68 context[self.countervar] = count 69 plural = self.render_token_list(self.plural) % context69 plural = self.render_token_list(self.plural) 70 70 result = translation.ngettext(singular, plural, count) % context 71 71 else:
