mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
Revert "lint: Don't allow handlerbars within translatable text."
This reverts commit 3c7b9cdc94.
This commit is contained in:
@@ -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 %}[\.\?!]",
|
||||
|
||||
Reference in New Issue
Block a user