From pykde Fri May 20 21:38:17 2005 From: Jorge Godoy Date: Fri, 20 May 2005 21:38:17 +0000 To: pykde Subject: [PyKDE] Re: Translating UI files Message-Id: <878y29zigm.fsf () jupiter ! g2ctech> X-MARC-Message: https://marc.info/?l=pykde&m=111662535403255 "Hihn, Jason" 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 _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde