Ticket #4152: 4152.diff
File 4152.diff, 1022 bytes (added by , 18 years ago) |
---|
-
django/templatetags/i18n.py
40 40 if self.noop: 41 41 return value 42 42 else: 43 return translation. gettext(value)43 return translation.ugettext(value) 44 44 45 45 class BlockTranslateNode(Node): 46 46 def __init__(self, extra_context, singular, plural=None, countervar=None, counter=None): … … 68 68 count = self.counter.resolve(context) 69 69 context[self.countervar] = count 70 70 plural = self.render_token_list(self.plural) 71 result = translation. ngettext(singular, plural, count) % context71 result = translation.ungettext(singular, plural, count) % context 72 72 else: 73 result = translation. gettext(singular) % context73 result = translation.ugettext(singular) % context 74 74 context.pop() 75 75 return result 76 76