[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-01-31 18:01:45
Message-ID: 1634664.zksxOxSUBl () saturn
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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
[Attachment #5 (unknown)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" \
content="1" /><style type="text/css"> p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; \
font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">Hello,</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">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, .......</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">Regards,</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">Detlev<br /><br />On Thursday 31 January 2013, \
18:59:35 uahmed wrote:<br /></p> <p style=" margin-top:12px; margin-bottom:0px; \
margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">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> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Thu, Jan 31, 2013 at 3:45 \
PM, Vincent Vande Vyvre &lt;<a href="mailto:vincent.vandevyvre@swing.be"><span \
style=" text-decoration: underline; \
color:#0057ae;">vincent.vandevyvre@swing.be</span></a>&gt; wrote:<br /></p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:44px; margin-right:40px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Le 31/01/13 13:23, uahmed a \
écrit :<br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:44px; \
margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; \
Vincent , Should i make a Qt project and include all the python files<br />&gt; to it \
? In those python files i use Pyqt for updating windows text etc   .<br />&gt;<br \
/>&gt; On Thu, Jan 31, 2013 at 3:12 PM, uahmed &lt;<a \
href="mailto:gleam.uahmed@gmail.com"><span style=" text-decoration: underline; \
color:#0057ae;">gleam.uahmed@gmail.com</span></a><br /></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:44px; margin-right:40px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &lt;mailto:<a \
href="mailto:gleam.uahmed@gmail.com"><span style=" text-decoration: underline; \
color:#0057ae;">gleam.uahmed@gmail.com</span></a>&gt;&gt; wrote:<br />&gt;<br />&gt;  \
Hi<br />&gt;<br />&gt;       Thanks for the reply . Is there any way to do \
tranlsation with<br />&gt;       '.ui'   file format or with .py file . I am not \
using QtCreator i<br />&gt;       did whole code from scratch and i make the other \
windows in<br />&gt;       QtDesigner which generate the '.ui' file and than i use \
them in my<br />&gt;       code .<br />&gt;<br /></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">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"><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 /></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br /></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br /><br />-- </p> <p style=" margin-top:12px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-size:11pt; \
font-weight:600;">Detlev Offenbach</span></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">detlev@die-offenbachs.de</p></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