[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] Re: Translating UI files
From: Jorge Godoy <godoy () ieee ! org>
Date: 2005-05-20 21:38:17
Message-ID: 878y29zigm.fsf () jupiter ! g2ctech
[Download RAW message or body]
"Hihn, Jason" <Jason.Hihn@verint.com> writes:
> How does one go about translating UI files when apps are completely
> written in python with PyQt?
Run something like
pyuic -p 4 -o file.py file.ui
This will create 'modules'. Run something like
pyuic -x -p 4 -o main.py main.ui
to create the main executable.
You'll have to subclass the modules to make changes since the files get
overwritten everytime they are regenerated.
> In my app I use QWidgetFactory to create a dialog from a ui file. I need
> to translate that, preferably without making a ui file for each
> language.
There's a method for handling and dealing with I18N and L10N. Here on my box
the docs are at /usr/share/doc/packages/qt3/html/i18n.html and you should be
able to find them online at http://doc.trolltech.com/3.3/i18n.html
Be seeing you,
--
Jorge Godoy <godoy@ieee.org>
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic