Edgewall Software

Changeset 1105 for trunk


Ignore:
Timestamp:
Apr 16, 2010, 2:48:05 PM (13 years ago)
Author:
cmlenz
Message:

Fix regression in [1099]: templates must not have an implicit loader during message extraction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/genshi/filters/i18n.py

    r1096 r1105  
    404404        # There should be no match in any catalogue for these singular and
    405405        # plural test strings
    406         singular_test = ur'O\x85\xbe\xa9\xa8az\xc3?\xe6\xa1\x02n\x84\x93'
    407         plural_test = ur'\xcc\xfb+\xd3Pn\x9d\tT\xec\x1d\xda\x1a\x88\x00'
     406        singular_test = u'O\x85\xbe\xa9\xa8az\xc3?\xe6\xa1\x02n\x84\x93'
     407        plural_test = u'\xcc\xfb+\xd3Pn\x9d\tT\xec\x1d\xda\x1a\x88\x00'
    408408        translation = ngettext(singular_test, plural_test,
    409409                               self.numeral.evaluate(ctxt))
     
    924924        """Initialize the message buffer.
    925925       
    926         :param params: comma-separated list of parameter names
    927         :type params: `basestring`
    928         :param lineno: the line number on which the first stream event
    929                        belonging to the message was found
     926        :param directive: the directive owning the buffer
     927        :type directive: I18NDirective
    930928        """
    931929        # params list needs to be copied so that directives can be evaluated
     
    12251223    tmpl = template_class(fileobj, filename=getattr(fileobj, 'name', None),
    12261224                          encoding=encoding)
     1225    tmpl.loader = None
    12271226
    12281227    translator = Translator(None, ignore_tags, include_attrs, extract_text)
Note: See TracChangeset for help on using the changeset viewer.