[PyQt] Translating from a function

Eric Frederich eric.frederich at gmail.com
Wed Sep 29 15:19:42 BST 2010


I have a bunch of helper functions that raise exceptions and I'd like the
messages in those exceptions to be translated.
How should I get those strings translated?
QObject.tr is not a static method, I can't just call it.
I need a QObject don't I?

What is the best practice here?

Thanks,
~Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100929/fc1e5774/attachment.html>


More information about the PyQt mailing list