[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Localizing PyQt4 application
From:       Ismail Donmez <ismail () pardus ! org ! tr>
Date:       2006-12-04 17:46:37
Message-ID: 200612041946.38431.ismail () pardus ! org ! tr
[Download RAW message or body]

04 Ara 2006 Pts 19:26 tarihinde, Andreas Pakulat şunları yazmıştı: 
> On 04.12.06 18:58:54, Ismail Donmez wrote:
> > Hi,
> >
> > I have the following code in my app:
> >
> > class MyApp(QtGui.QApplication):
> >     def __init__(self):
> >         QtGui.QApplication.__init__(self,sys.argv)
> >
> >         self.mainWindow = MainWindow()
> >
> >         self.translator = QTranslator()
> >         self.translator.load(("myapp-%s.qm" %
> > QLocale.system().name()), "/usr/share/myapp")
> >         self.installTranslator(self.translator)
> >
> >         self.mainWindow.show()
> >         self.exec_()
> >
> > if __name__ == "__main__":
> >     MyApp
> >
> > And
> > /usr/share/myapp/myapp-tr_TR.qm file exists. But when I start my app with
> > tr_TR locale it still shows English strings. I extracted the strings with
> > lupdate4 mainwindow.py -ts myapp.ts . So I wonder if I am doing something
> > wrong or maybe I have to re-implement a function?
>
> Works fine for me, did you translate all the strings using qt4's linguist?

Yeah it shows everything is translated :-/

-- 
A pisi up everyday keeps the bugs away

_______________________________________________
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