Re: [PyQt] Fwd: translation of ui

2011-07-02 Thread Sebastian Wiesner
2011/7/1 Yaşar Arabacı yasar11...@gmail.com: I got it working but wanted to get an affimation, what do you think of this approach? if __name__ == __main__:     from locale import getlocale     from os.path import exists     app = QtGui.QApplication(sys.argv)     if getlocale()[0]:    

Re: [PyQt] Fwd: translation of ui

2011-07-02 Thread Thorsten Kampe
* Yasar Arabaci (Fri, 1 Jul 2011 12:52:09 +0300) I got it working but wanted to get an affimation, what do you think of this approach? if __name__ == __main__: from locale import getlocale from os.path import exists app = QtGui.QApplication(sys.argv) if getlocale()[0]:

[PyQt] Fwd: translation of ui

2011-07-01 Thread Yaşar Arabacı
I accidentally mailed below message only to Sebastian, repostion to groups. -- Yönlendirilmiş ileti -- Kimden: Yaşar Arabacı yasar11...@gmail.com Tarih: 01 Temmuz 2011 12:07 Konu: Re: [PyQt] translation of ui Kime: Sebastian Wiesner lunary...@googlemail.com Thanks, appearantly I

Re: [PyQt] Fwd: translation of ui

2011-07-01 Thread Sebastian Wiesner
2011/7/1 Yaşar Arabacı yasar11...@gmail.com: Thanks, appearantly I also needed to create a .pro file for pylupdate to know which files to convert to. Alternatively you can specifiy the files to translate and the translations to update on the command line: pylupdate4 ui_files python_files -ts

Re: [PyQt] Fwd: translation of ui

2011-07-01 Thread Yaşar Arabacı
That works like a charm thanks :) 01 Temmuz 2011 12:17 tarihinde Sebastian Wiesner lunary...@googlemail.comyazdı: 2011/7/1 Yaşar Arabacı yasar11...@gmail.com: Thanks, appearantly I also needed to create a .pro file for pylupdate to know which files to convert to. Alternatively you can

Re: [PyQt] Fwd: translation of ui

2011-07-01 Thread Yaşar Arabacı
Hi, me again :) I got it working but wanted to get an affimation, what do you think of this approach? if __name__ == __main__: from locale import getlocale from os.path import exists app = QtGui.QApplication(sys.argv) if getlocale()[0]: if exists(translations/ +