I think the program you used to go from .ui to .py files took out the _translate function and put in full QtGui.QApplication.translate function for quite a few lines.