Django

Code

Changeset 1230

Show
Ignore:
Timestamp:
11/14/05 07:29:38 (3 years ago)
Author:
hugo
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/templatetags/i18n.py

    r1068 r1230  
    6363        for var,val in self.extra_context.items(): 
    6464            context[var] = resolve_variable_with_filters(val, context) 
    65         singular = self.render_token_list(self.singular) % context 
     65        singular = self.render_token_list(self.singular) 
    6666        if self.plural and self.countervar and self.counter: 
    6767            count = resolve_variable_with_filters(self.counter, context) 
    6868            context[self.countervar] = count 
    69             plural = self.render_token_list(self.plural) % context 
     69            plural = self.render_token_list(self.plural) 
    7070            result = translation.ngettext(singular, plural, count) % context 
    7171        else: