<div dir="ltr">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  . <br><br><div class="gmail_quote">On Thu, Jan 31, 2013 at 3:12 PM, uahmed <span dir="ltr"><<a href="mailto:gleam.uahmed@gmail.com" target="_blank">gleam.uahmed@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi <br><br>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 . <br>

<br>Thanks<div><div class="h5"><br><br><div class="gmail_quote">On Thu, Jan 31, 2013 at 2:53 PM, Vincent Vande Vyvre <span dir="ltr"><<a href="mailto:vincent.vandevyvre@swing.be" target="_blank">vincent.vandevyvre@swing.be</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 31/01/13 12:37, uahmed a écrit :<br>
<div><div>> Hi<br>
><br>
> I am facing problem in doing translation of pyqt application . The way<br>
> i use to create frame /window is that . I create the frame on Qt4<br>
> Designer and it generate the .ui file after that i convert it to<br>
> python file using pyuic4 tool and include it in the application .<br>
><br>
> I search internet what i get is that qt creator has Languist program<br>
> that take .pro file format and can generate the language file . What<br>
> files i can have are the .ui or.py file . and pyqt has  pylupdate4<br>
> program that can do it but that required .pro file and i have .ui and<br>
> py file .I also try to open a ui file in qt Creator and save it as a<br>
> project file and than use pylupdate4 and lupdate but it says its not<br>
> .pro file format .<br>
><br>
> Can anyone tell me whats the best way to translate the file . In my<br>
> application sometime i have to update the window text on the runtime<br>
> so that text is in the code too any way to separate that code ? . I am<br>
> sorry i am new to converting files for language .<br>
><br>
> Any reply will be the thankful<br>
><br>
> Thank you<br>
><br>
> Ahmed<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
> <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
This is an example of a file .pro<br>
<br>
-----------------------------------<br>
SOURCES         = main.py\<br>
                            ui_foo.py\<br>
                            ui_dialog.py<br>
<br>
TRANSLATIONS    = myApp_fr.ts<br>
<br>
CODECFORTR      = UTF-8<br>
<br>
CODECFORSRC     = UTF-8<br>
-----------------------------------<br>
<br>
myApp_fr.ts is french in this example, you'll need to create one .ts<br>
file for each langage.<br>
<span><font color="#888888"><br>
--<br>
Vincent V.V.<br>
Oqapy <<a href="https://launchpad.net/oqapy" target="_blank">https://launchpad.net/oqapy</a>> . Qarte<br>
<<a href="https://launchpad.net/qarte" target="_blank">https://launchpad.net/qarte</a>> . PaQager <<a href="https://launchpad.net/paqager" target="_blank">https://launchpad.net/paqager</a>><br>
_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br></div>