Python Format Strings Validation

transifex
September 6, 2012
1 min read

Python format strings are the new trend in writing strings in Python. Since more and more developers choose to use them, it goes without saying that this relatively new type should be supported by Transifex; and that is exactly what we did. Format strings in PO files are now recognized and by setting the python-format flag in the source PO file, you can make our validation functionality kick off for them too when translating in Lotte.

#: foo/bar.py
#, python-format
msgid "This is a format string with a {kwarg} {arg} and {}."
msgstr ""

 

Learn more about python format strings.

TRANSIFEX
Try AI-Translation for Free!
Translate any webpage in just minutes with Transifex AI and receive a detailed content quality report.
TRY IT NOW
transifex
FacebookgithubGoogle+Fill 88Twitter