bag.reorder_po module

Reorders the translations inside a .po file.

This script was written because transifex is messy and when you pull translations from transifex, the order of the strings completely changes and when you do a git diff you cannot make sense of the alterations. It is even hard to see whether any translations have been lost. But if you always reorder the .po after pulling from transifex, then the diff will be readable and the version history will make sense.

bag.reorder_po.reorder_po(path, encoding='utf-8')[source]