I'm trying to internationalize my webpages by using the {% trans "string" %}
method in django.
However I get an error when I try to use quotes in the string. I've already tried to escape them with a backslash with no luck.
How can I escape something like this:
{% trans "foo's is like "foo"." %}
As I said, this doesn't work:
{% trans "foo\'s is like \"foo\"." %}
Any idea?
Thanks
Use blocktrans
instead.
{% blocktranslate %}Just an example block to translate with {{value}} and text.{% endblocktranslate %}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With