summaryrefslogtreecommitdiffstats
path: root/askbot/management/commands/jinja2_makemessages.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/management/commands/jinja2_makemessages.py')
-rw-r--r--askbot/management/commands/jinja2_makemessages.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/askbot/management/commands/jinja2_makemessages.py b/askbot/management/commands/jinja2_makemessages.py
index 4fa05443..fb772ed9 100644
--- a/askbot/management/commands/jinja2_makemessages.py
+++ b/askbot/management/commands/jinja2_makemessages.py
@@ -43,11 +43,11 @@ class Command(makemessages.Command):
# Extend the regular expressions that are used to detect
# translation blocks with an "OR jinja-syntax" clause.
trans_real.endblock_re = re.compile(
- trans_real.endblock_re.pattern + '|' + r"""^\s*endtrans\s*-?$""")
+ trans_real.endblock_re.pattern + '|' + r"""^-?\s*endtrans\s*-?$""")
trans_real.block_re = re.compile(
- trans_real.block_re.pattern + '|' + r"""^\s*trans(?:\s*|$)""")
+ trans_real.block_re.pattern + '|' + r"""^-?\s*trans(?:\s*|$)""")
trans_real.plural_re = re.compile(
- trans_real.plural_re.pattern + '|' + r"""^\s*pluralize(\s+\w+)?-?$""")
+ trans_real.plural_re.pattern + '|' + r"""^-?\s*pluralize(\s+\w+)?\s*-?$""")
try:
super(Command, self).handle(*args, **options)