Loading django/core/management/commands/makemessages.py +1 −1 Original line number Diff line number Diff line Loading @@ -155,7 +155,7 @@ class BuildFile(object): return re.sub( r'^(#: .*)(' + re.escape(old_path) + r')', r'\1' + new_path, lambda match: match.group().replace(old_path, new_path), msgs, flags=re.MULTILINE ) Loading tests/i18n/commands/templates/test.html +2 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,8 @@ continued here.{% endcomment %} <!-- Source file inside a msgid, should be left as-is. --> {% trans "#: templates/test.html.py" %} <!-- Deliberate duplicated string. --> {% trans "This literal should be included." %} {% blocktrans context "Special blocktrans context #1" %}Translatable literal #8a{% endblocktrans %} {% blocktrans count 2 context "Special blocktrans context #2" %}Translatable literal #8b-singular{% plural %}Translatable literal #8b-plural{% endblocktrans %} Loading Loading
django/core/management/commands/makemessages.py +1 −1 Original line number Diff line number Diff line Loading @@ -155,7 +155,7 @@ class BuildFile(object): return re.sub( r'^(#: .*)(' + re.escape(old_path) + r')', r'\1' + new_path, lambda match: match.group().replace(old_path, new_path), msgs, flags=re.MULTILINE ) Loading
tests/i18n/commands/templates/test.html +2 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,8 @@ continued here.{% endcomment %} <!-- Source file inside a msgid, should be left as-is. --> {% trans "#: templates/test.html.py" %} <!-- Deliberate duplicated string. --> {% trans "This literal should be included." %} {% blocktrans context "Special blocktrans context #1" %}Translatable literal #8a{% endblocktrans %} {% blocktrans count 2 context "Special blocktrans context #2" %}Translatable literal #8b-singular{% plural %}Translatable literal #8b-plural{% endblocktrans %} Loading