lint: Clean up translation tag lint for filter settings.

This commit is contained in:
Tim Abbott 2018-03-02 09:30:42 -08:00
parent f9210bace8
commit 9c4b0cc100
1 changed files with 1 additions and 2 deletions

View File

@ -534,12 +534,11 @@ def build_custom_checkers(by_lang):
'description': "The S in Terms of Service is capitalized"},
]) + comma_whitespace_rule
html_rules = whitespace_rules + prose_style_rules + [
{'pattern': 'placeholder="[^{](?:(?!\.com).)+$',
{'pattern': 'placeholder="[^{#](?:(?!\.com).)+$',
'description': "`placeholder` value should be translatable.",
'exclude_line': [('templates/zerver/register.html', 'placeholder="acme"'),
('templates/zerver/register.html', 'placeholder="Acme or Aκμή"')],
'exclude': set(["static/templates/settings/emoji-settings-admin.handlebars",
"static/templates/settings/realm-filter-settings-admin.handlebars",
"static/templates/settings/bot-settings.handlebars"]),
'good_lines': ['<input class="stream-list-filter" type="text" placeholder="{{ _(\'Search streams\') }}" />'],
'bad_lines': ['<input placeholder="foo">']},