Image the following blocktrans
in some Django template:
{% blocktrans %}
Some Text
{% endblocktrans %}
After some changes in the templates, you might like to indent the block:
<div>
{% blocktrans %}
Some Text
{% endblocktrans %}
</div>
This is going to change your message in the translation files, and mark them as fuzzy. While technically, it is the same message (only the indentation is different).
The whole process of "unfuzzyfying" those messages is tedious and error-prone.
What I tried so far:
- Using
trans
as much as possible - doesn't always work - Keeping the initial indentation of
blocktrans
statements - hard to maintain - Tried to find more information in documentation and other resources
Is there a way to make the indentation in blocktrans
insignificant?