emoji: Add a translation tag for new_emoji placeholder.

This commit is contained in:
Tim Abbott
2018-03-02 09:32:09 -08:00
parent 9c4b0cc100
commit e18537d842
2 changed files with 2 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
<div class="alert" id="admin-emoji-status"></div>
<div class="inline-block">
<label for="emoji_name">{{t "Emoji name" }}</label>
<input type="text" name="name" id="emoji_name" placeholder="mouse_face" />
<input type="text" name="name" id="emoji_name" placeholder="{{t 'new_emoji' }}" />
</div>
<div class="inline-block">
<span id="emoji-file-name"></span>

View File

@@ -538,8 +538,7 @@ def build_custom_checkers(by_lang):
'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/bot-settings.handlebars"]),
'exclude': set(["static/templates/settings/bot-settings.handlebars"]),
'good_lines': ['<input class="stream-list-filter" type="text" placeholder="{{ _(\'Search streams\') }}" />'],
'bad_lines': ['<input placeholder="foo">']},
{'pattern': "placeholder='[^{]",