[PyKDE] Translation trouble

Aurélien Gâteau aurelien at dental-on-line.fr
Fri Jul 25 18:46:01 BST 2003


Le Vendredi 25 Juillet 2003 18:41, vous avez écrit :
> On Friday 25 July 2003 5:16 pm, Aurélien Gâteau wrote:
> > 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?
>
> Which version of PyQt? The documentation describes v3.7.

This is PyQt 3.7.

Aurélien




More information about the PyQt mailing list