[PyQt] Pyqt Translation
uahmed
gleam.uahmed at gmail.com
Sat Feb 2 10:29:59 GMT 2013
Hi Detlev ,
Thanks alot for the reply , Eric IDE is perfect for this . Just in case if
anyone else face the problem here is solution .
Open Eric IDE , Project and open a new project go to particular folder and
open it. After that on the left side it you will find one tab with tooltip
of Translation , there you will find the .qm file .
After that change the extention of .qm file to .ts file and open it on Qt4
Linguistic (as i tried to open it but Qt4 Linguistic dont open the .qm
file) after opening that file select the language and it will ask you for
translation . once you have done that than go to File and click on Release
As , this will generate the .qm file . Now include your .qm file into the
script .
Detlev Danke a lot i have been searching for this for long :)
Thanks
Ahmed
On Thu, Jan 31, 2013 at 9:01 PM, Detlev Offenbach
<detlev at die-offenbachs.de>wrote:
> **
>
> Hello,
>
>
>
> why not use the eric IDE for development? It has built in interfaces to
> the Qt tools and would do the .pro generation in the background for you. It
> is really simple to do translation update for just one language, several or
> even all, add new languages, .......
>
>
>
> Regards,
>
> Detlev
>
>
> On Thursday 31 January 2013, 18:59:35 uahmed wrote:
>
> Hi
>
> Thanks for the reply . I will do same i guess . Can you tell me one thing
> how you are making qt project with .py files?
>
> I installed -qt-creator-py and python-pyside too , but whenever i create a
> project it gives me main.cpp file and i didnt find any option in start to
> choose python . Sorry i am new to QtCreator .
>
> Thanks
>
> Ahmed
>
> On Thu, Jan 31, 2013 at 3:45 PM, Vincent Vande Vyvre <
> vincent.vandevyvre at swing.be> wrote:
>
> Le 31/01/13 13:23, uahmed a écrit :
>
> > Vincent , Should i make a Qt project and include all the python files
> > to it ? In those python files i use Pyqt for updating windows text etc .
> >
> > On Thu, Jan 31, 2013 at 3:12 PM, uahmed <gleam.uahmed at gmail.com
>
> > <mailto:gleam.uahmed at gmail.com>> wrote:
> >
> > Hi
> >
> > Thanks for the reply . Is there any way to do tranlsation with
> > '.ui' file format or with .py file . I am not using QtCreator i
> > did whole code from scratch and i make the other windows in
> > QtDesigner which generate the '.ui' file and than i use them in my
> > code .
> >
>
> I've never used QtCreator.
>
> I convert my .ui files to .py, I update the file .pro if necessary and I
> run:
>
> pylupdate4 -noobsolete oqapy.pro
>
> (oqapy is my app) after that, I open the .ts file with QLinguist.
>
>
>
>
> --
>
> Detlev Offenbach
>
> detlev at die-offenbachs.de
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130202/f0aa7d4f/attachment.html>
More information about the PyQt
mailing list