Friday, May 1, 2020

How to refer to another translation in a translation?

msgid "Tree free"
msgstr "aa"

msgid
"True free is good"
msgstr "aa is good"

This po file has a key "Tree free", which I translated to "aa". There is another key "True free is good", which should be translated to "aa is good." 

Considering the Don't Repeat Yourself rule, can I refer the translation of "Tree free" in "True free is good".

I'm looking for a syntax or sort of things that is like 


msgid "True free is good"
msgstr "{% trans 'Tree free' %} is good"



Can I refer to another translation in a translation? I'm fine with extending an internal class, how should I do it?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a5a0b03a-eb4c-4699-ac69-5c1db9320805%40googlegroups.com.

No comments:

Post a Comment