Using gettext in compiled Qt ui files with PySide

This recipe is based on the PyQt recipe found here. This is just the PySide port of it.

In some cases you might find yourself in the situation of wanting to use gettext in a PySide project in which you have .ui files generated using QtDesigner.

For those kind of situations is a good idea to extend the PySide compiler. The following example shows how to do so in a distutils command.

more ...