Revert "lint: Don't allow handlerbars within translatable text."

This reverts commit 3c7b9cdc94.
This commit is contained in:
Umair Khan
2017-06-30 10:54:13 +05:00
committed by showell
parent 74d83cc47e
commit f60d4849b7

View File

@@ -385,12 +385,6 @@ def build_custom_checkers(by_lang):
'description': "Period should be part of the translatable string."},
{'pattern': "{{/tr}}[\.\?!]",
'description': "Period should be part of the translatable string."},
{'pattern': "{{#tr.*}}.*{{.*{{/tr}}",
'exclude_line': set([
('static/templates/subscription_settings.handlebars',
'{{#if subscribed }}{{#tr oneself }}Unsubscribe{{/tr}}{{else}}{{#tr oneself }}Subscribe{{/tr}}{{/if}}</button>'),
]),
'description': "Translated messages should not contain handlebars."},
]
jinja2_rules = html_rules + [
{'pattern': "{% endtrans %}[\.\?!]",