Mercurial > genshi > mirror
comparison genshi/filters/i18n.py @ 1039:51515d7ffbe4 stable-0.6.x
Merge r1263 from trunk (add 'placeholder' to list of translatable attributes).
author | hodgestar |
---|---|
date | Wed, 19 Mar 2014 14:35:27 +0000 |
parents | fa0e84724fee |
children |
comparison
equal
deleted
inserted
replaced
1036:26d6ac224d3b | 1039:51515d7ffbe4 |
---|---|
605 IGNORE_TAGS = frozenset([ | 605 IGNORE_TAGS = frozenset([ |
606 QName('script'), QName('http://www.w3.org/1999/xhtml}script'), | 606 QName('script'), QName('http://www.w3.org/1999/xhtml}script'), |
607 QName('style'), QName('http://www.w3.org/1999/xhtml}style') | 607 QName('style'), QName('http://www.w3.org/1999/xhtml}style') |
608 ]) | 608 ]) |
609 INCLUDE_ATTRS = frozenset([ | 609 INCLUDE_ATTRS = frozenset([ |
610 'abbr', 'alt', 'label', 'prompt', 'standby', 'summary', 'title' | 610 'abbr', 'alt', 'label', 'prompt', 'standby', 'summary', 'title', |
611 'placeholder', | |
611 ]) | 612 ]) |
612 NAMESPACE = I18N_NAMESPACE | 613 NAMESPACE = I18N_NAMESPACE |
613 | 614 |
614 def __init__(self, translate=NullTranslations(), ignore_tags=IGNORE_TAGS, | 615 def __init__(self, translate=NullTranslations(), ignore_tags=IGNORE_TAGS, |
615 include_attrs=INCLUDE_ATTRS, extract_text=True): | 616 include_attrs=INCLUDE_ATTRS, extract_text=True): |