I want to translate a string in a Django template:
{% trans "Thank you. You may <a href=\"/logout\">log out</a> now." %}
So in English, the result would be:
Thank you, You may <log out> now.
But - as an example in German, I need:
Vielen Dank. Sie können sich nun <ausloggen>.
Where the text in <> is the hyperlink. Now the problem is that the order of words has changed, and I do not find a way how to do this. I did see in the documentation that this can be done in Python code, with "placeholders". But I need it in templates. Is there a way to do it? Also, to ease translation, I don't like HTML in my translation file. Any help is highly appreciated!