[PyQt] PyQt: tr() or translate()
Michał Klich
klich.michal at gmail.com
Sun Jul 26 19:16:56 BST 2009
Dnia czwartek 23 lipca 2009 o 02:05:08 Hans-Peter Jansen napisał(a):
> Am Mittwoch, 22. Juli 2009 schrieb Michał Klich:
> > Hi,
> >
> > I would like to get some calrification on tr() and translate().
> > On webpage
> > http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#inter
> >nationalisation-of-pyqt-applicationsi found information that it is better
> > to use
> > QCoreApplication.translate()
> > instead of tr().
>
> http://www.riverbankcomputing.com/static/Docs/PyQt4/pyqt4ref.html#differenc
>es-between-pyqt-and-qt
>
> > Looks like QT Designer is using same approach. Though i can not find any
> > examples that would cover usage of QCoreApplication.translate(), like no
> > one would use it
>
> Apart from the additional context AND the very important note above,
> there's none.
>
> > Can someone please provide me with some additional info, some examples?
> > Or maybe website i am refering to is out of date?
> > I guess i could summarize my question, how do you create mutlilanguage
> > apps?
>
> You will have to ask more precisely, if you really want helpful answers -
> or even better, buy Mark Summerfields book "Rapid GUI Programming with
> Python and Qt" - you won't regret it!
>
> Pete
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Thank you very much for this book. I have been looking around for some good
books and actually skipped this one. You can't judge a book by its cover but i
did.
--
Michał Klich
klich.michal at gmail.com
http://www.michalklich.com
More information about the PyQt
mailing list