mirror of https://github.com/zulip/zulip.git
lint: Clean up translation tag lint for filter settings.
This commit is contained in:
parent
f9210bace8
commit
9c4b0cc100
|
@ -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">']},
|
||||
|
|
Loading…
Reference in New Issue