Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

makemessages: Adjust regex for new {{#tr}} syntax.

Anders Kaseorgef4c07356f71
diff --git a/zerver/management/commands/makemessages.py b/zerver/management/commands/makemessages.py
index d5af08da6fd..cfe45cc6c67 100644
--- a/zerver/management/commands/makemessages.py
+++ b/zerver/management/commands/makemessages.py
@@ -52,7 +52,7 @@ strip_whitespace_left = re.compile(
)
regexes = [
- r"{{#tr .*?}}([\s\S]*?){{/tr}}", # '.' doesn't match '\n' by default
+ r"{{#tr .*?}}([\s\S]*?)(?:{{/tr}}|{{#\*inline )", # '.' doesn't match '\n' by default
r'{{\s*t "(.*?)"\W*}}',
r"{{\s*t '(.*?)'\W*}}",
r'\(t "(.*?)"\)',