Last week while publishing a new guide I ran into a problem creating the
Transifex client configuration file
(.tx/config). The configuration file is generally a hateful file that
requires a lot of manual manipulation to add in all the POT files for
translation. This file exponentially increases the hatefulness as the
number of POT files increase or the complexity of where these POT files
increases. In summary, I hate to create these POT files. It seems I
always end up screwing it up somehow and the Transifex client isn't real
great about telling you why it failed (it just fails in a non-obvious
I started putting together some bash script to write the thing for me
until I realized that the script was going to become unwieldy quite
quickly. Luckily I have a boss who doesn't mind poking me into learning
a new trick. This new trick came in the form of Python. Realize that
the last formal programming class came in the form of a Java class
nearly ten years ago. Since then I try not to touch the stuff. But now
I have a purpose... a need... a problem in search of a solution... and
an excuse to start to learn Python.
So my creation is called
This simple program will read the pot/ directory for .pot files and
create the .tx/config file for Transifex to use. While there was a way
to have the Transifex client make the config file the process wasn't
easy nor did it work in all cases.
If you have a need to create Transifex config files please checkout
and, as always, I appreciate feedback.