comparison genshi/filters/i18n.py @ 1038:9da42eed139b stable-0.7.x

Merge r1263 from trunk (add 'placeholder' to list of translatable attributes).
author hodgestar
date Wed, 19 Mar 2014 14:34:20 +0000
parents 9c4fafa85f4a
children
comparison
equal deleted inserted replaced
1035:b94f323297e1 1038:9da42eed139b
602 IGNORE_TAGS = frozenset([ 602 IGNORE_TAGS = frozenset([
603 QName('script'), QName('http://www.w3.org/1999/xhtml}script'), 603 QName('script'), QName('http://www.w3.org/1999/xhtml}script'),
604 QName('style'), QName('http://www.w3.org/1999/xhtml}style') 604 QName('style'), QName('http://www.w3.org/1999/xhtml}style')
605 ]) 605 ])
606 INCLUDE_ATTRS = frozenset([ 606 INCLUDE_ATTRS = frozenset([
607 'abbr', 'alt', 'label', 'prompt', 'standby', 'summary', 'title' 607 'abbr', 'alt', 'label', 'prompt', 'standby', 'summary', 'title',
608 'placeholder',
608 ]) 609 ])
609 NAMESPACE = I18N_NAMESPACE 610 NAMESPACE = I18N_NAMESPACE
610 611
611 def __init__(self, translate=NullTranslations(), ignore_tags=IGNORE_TAGS, 612 def __init__(self, translate=NullTranslations(), ignore_tags=IGNORE_TAGS,
612 include_attrs=INCLUDE_ATTRS, extract_text=True): 613 include_attrs=INCLUDE_ATTRS, extract_text=True):
Copyright (C) 2012-2017 Edgewall Software