[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Pyqt Translation
From: Detlev Offenbach <detlev () die-offenbachs ! de>
Date: 2013-02-02 17:50:18
Message-ID: 98017321-6B7F-4D89-8D57-7C4A062C0B23 () die-offenbachs ! de
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hello Ahmed,
I am glad you like eric.
Happy coding
Detlev
Am 02.02.2013 um 11:29 schrieb uahmed <gleam.uahmed@gmail.com>:
> 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@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@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@gmail.com
> > <mailto:gleam.uahmed@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@die-offenbachs.de
>
> _______________________________________________
> PyQt mailing list PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Detlev Offenbach
detlev@die-offenbachs.de
[Attachment #5 (unknown)]
<html><head><meta http-equiv="Content-Type" content="text/html \
charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: \
space; -webkit-line-break: after-white-space; ">Hello Ahmed,<div><br></div><div>I am \
glad you like eric. </div><div><br></div><div>Happy \
coding</div><div>Detlev</div><div><br><div><div>Am 02.02.2013 um 11:29 schrieb uahmed \
<<a href="mailto:gleam.uahmed@gmail.com">gleam.uahmed@gmail.com</a>>:</div><br \
class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Detlev \
,<br><br>Thanks alot for the reply , Eric IDE is perfect for this . Just in case if \
anyone else face the problem here is solution .<br><br>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 . <br> <br>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 . <br> <br>Detlev \
Danke a lot i have been searching for this for long :) \
<br><br>Thanks<br>Ahmed<br><br><div class="gmail_quote">On Thu, Jan 31, 2013 at 9:01 \
PM, Detlev Offenbach <span dir="ltr"><<a href="mailto:detlev@die-offenbachs.de" \
target="_blank">detlev@die-offenbachs.de</a>></span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><u></u> <div style="font-family:'Sans \
Serif';font-size:9pt;font-weight:400;font-style:normal"><div style="margin: 0px; \
text-indent: 0px; ">Hello,</div><p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p><div \
style="margin: 0px; text-indent: 0px; ">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, .......</div><p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p><div \
style="margin: 0px; text-indent: 0px; ">Regards,</div><div style="margin: 0px; \
text-indent: 0px; ">Detlev</div><div class="im"><br><br>On Thursday 31 January 2013, \
18:59:35 uahmed wrote:<br></div><div><br class="webkit-block-placeholder"></div><div \
class="im"><p style="margin-top:12px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">Hi \
<br><br>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? <br> <br>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 . \
<br><br>Thanks<br><br> Ahmed<br><br></p><div style="margin: 0px 40px; text-indent: \
0px; ">On Thu, Jan 31, 2013 at 3:45 PM, Vincent Vande Vyvre <<a \
href="mailto:vincent.vandevyvre@swing.be" target="_blank"><span \
style="text-decoration:underline;color:#0057ae">vincent.vandevyvre@swing.be</span></a>> \
wrote:<br> </div><div style="margin: 0px 40px 0px 44px; text-indent: 0px; ">Le \
31/01/13 13:23, uahmed a écrit :<br></div><div style="margin: 0px 40px 0px 44px; \
text-indent: 0px; ">> Vincent , Should i make a Qt project and include all the \
python files<br>> to it ? In those python files i use Pyqt for updating windows \
text etc .<br> ><br>> On Thu, Jan 31, 2013 at 3:12 PM, uahmed <<a \
href="mailto:gleam.uahmed@gmail.com" target="_blank"><span \
style="text-decoration:underline;color:#0057ae">gleam.uahmed@gmail.com</span></a><br></div><div \
style="margin: 0px 40px 0px 44px; text-indent: 0px; ">> <mailto:<a \
href="mailto:gleam.uahmed@gmail.com" target="_blank"><span \
style="text-decoration:underline;color:#0057ae">gleam.uahmed@gmail.com</span></a>>> \
wrote:<br> ><br>> Hi<br>><br>> Thanks for the \
reply . Is there any way to do tranlsation with<br>> '.ui' \
file format or with .py file . I am not using QtCreator i<br>> \
did whole code from scratch and i make the other windows in<br> > \
QtDesigner which generate the '.ui' file and than i use them in my<br>> \
code .<br>><br></div><div style="margin: 0px; text-indent: 0px; ">I've \
never used QtCreator.<br><br>I convert my .ui files to .py, I update the file .pro if \
necessary and I<br>run:<br><br>pylupdate4 -noobsolete <a href="http://oqapy.pro/" \
target="_blank"><span \
style="text-decoration:underline;color:#0057ae">oqapy.pro</span></a><br> <br>(oqapy \
is my app) after that, I open the .ts file with QLinguist.<br></div><div \
style="margin: 0px; text-indent: 0px; "><br></div> </div><div style="margin: 0px; \
text-indent: 0px; "><br><br>-- </div><p \
style="margin-top:12px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="font-size:11pt;font-weight:600">Detlev Offenbach</span></p><div style="margin: \
0px; text-indent: 0px; "><a href="mailto:detlev@die-offenbachs.de" \
target="_blank">detlev@die-offenbachs.de</a></div></div></blockquote></div><br></div> \
_______________________________________________<br>PyQt mailing list \
<a \
href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br><a \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></blockquote></div><br><div \
apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: \
separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; \
font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: \
normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; \
white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: \
0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; \
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; \
"><div>Detlev Offenbach</div><div><a \
href="mailto:detlev@die-offenbachs.de">detlev@die-offenbachs.de</a></div><div><br></div></span><br \
class="Apple-interchange-newline">
</div>
<br></div></body></html>
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic