[PyKDE] Translation trouble
Aurélien Gâteau
aurelien at dental-on-line.fr
Fri Jul 25 18:26:00 BST 2003
Hi,
Sometimes, the translation of strings in our .ui files are not displayed, the
original string is used instead. It seems there's a context problem.
According to: http://www.riverbankcomputing.co.uk/pyqt/docs/x163.html (Things
to be Aware of), pyuic uses "QApplication.translate()" but after looking at
the code it's not the case, I discovered it uses "self.tr()" instead.
Replacing "self.tr()" with "qApp.translate()" fixed the bug.
Any idea why pyuic does not do what it is supposed to?
Regards,
Aurélien
More information about the PyQt
mailing list