comparison genshi/filters/i18n.py @ 1037:744a33f78ccc trunk

Add HTML5 input placeholder attribute to list of translatable attributes (fixes #577).
author hodgestar
date Wed, 19 Mar 2014 14:31:48 +0000
parents 38565f2ab970
children
comparison
equal deleted inserted replaced
1034:e02843c0fecc 1037:744a33f78ccc
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