Validate Python string translation in Transifex

Transifex already supported validating translations of old styled Python strings, e.g., [sourcecode language=”python”] “A sample string with a %(keyword)s argument.” % {‘keyword’: ‘key word’} [/sourcecode] The validation is done by checking if all the positional and keyword arguments are present in the translation string and the translation string does not contain any extra argument which is not in the source string. You can have a look at the validator code here....

September 2, 2012 · Ratnadeep Debnath