- Timestamp:
- Apr 16, 2010, 2:48:05 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/genshi/filters/i18n.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/genshi/filters/i18n.py
r1096 r1105 404 404 # There should be no match in any catalogue for these singular and 405 405 # plural test strings 406 singular_test = u r'O\x85\xbe\xa9\xa8az\xc3?\xe6\xa1\x02n\x84\x93'407 plural_test = u r'\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' 408 408 translation = ngettext(singular_test, plural_test, 409 409 self.numeral.evaluate(ctxt)) … … 924 924 """Initialize the message buffer. 925 925 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 930 928 """ 931 929 # params list needs to be copied so that directives can be evaluated … … 1225 1223 tmpl = template_class(fileobj, filename=getattr(fileobj, 'name', None), 1226 1224 encoding=encoding) 1225 tmpl.loader = None 1227 1226 1228 1227 translator = Translator(None, ignore_tags, include_attrs, extract_text)
Note: See TracChangeset
for help on using the changeset viewer.
