i18n: Automatically strip Handlebars strings.

Some Handlebars strings contained whitespaces characters at their ends.
With this, such characters are removed, as well as multiple spaces
(like the ones produced by code indentation).

This also includes a couple of fixes that removes spaces that were
intentionally placed before/after the string to translate.
This commit is contained in:
Yago González
2017-03-27 21:25:43 +00:00
committed by Tim Abbott
parent 31c92cdcbc
commit e710110a9e
3 changed files with 10 additions and 7 deletions

View File

@@ -57,10 +57,10 @@ IGNORED_PHRASES = [
# Fragments of larger strings
(r'Change notification settings for individual streams on your '
'<a href="/#streams">Streams page</a>.'),
(r'<p class="bot-settings-note padded-container"> Looking for our '
(r'Looking for our '
'<a href="/integrations" target="_blank">Integrations</a> or '
'<a href="{{ server_uri }}/api" target="_blank">API</a> '
'documentation? </p>'),
'documentation?'),
r'Most stream administration is done on the <a href="/#streams">Streams page</a>.',
r"one or more people...",
r"confirmation email",