.pot merging tool

.pot, what’s that? It’s something really useful when doing i18n, l10n or g11n (just i18n in my case), but really something tough to tackle when it’s generated from source code… Maybe not that tough, but do I really need to do this manually? Not anymore… Yesterday I had to create an update of an existing .pot file, and since my .pots are generated from the source, I figured it would be easier to create an application to merge the translations from the existing .po(t) files to the new, generated (and with no translations) .pot file.

I did a couple of searches in the past for a tool like this and failed to find a solution… This application is actually pretty embarrassing (especially the source code) to put online, but I hope someone might find it useful. Continue reading