I accidentally mailed below message only to Sebastian, repostion to groups.<br><br><div class="gmail_quote">---------- Yönlendirilmiş ileti ----------<br>Kimden: <b class="gmail_sendername">Yaşar Arabacı</b> <span dir="ltr"><<a href="mailto:yasar11732@gmail.com">yasar11732@gmail.com</a>></span><br>
Tarih: 01 Temmuz 2011 12:07<br>Konu: Re: [PyQt] translation of ui<br>Kime: Sebastian Wiesner <<a href="mailto:lunaryorn@googlemail.com">lunaryorn@googlemail.com</a>><br><br><br>Thanks, appearantly I also needed to create a .pro file for pylupdate to know which files to convert to. I created a language file and translated it, but how would my application use that translation file?<br>
<br><div class="gmail_quote">
01 Temmuz 2011 11:44 tarihinde Sebastian Wiesner <span dir="ltr"><<a href="mailto:lunaryorn@googlemail.com" target="_blank">lunaryorn@googlemail.com</a>></span> yazdı:<div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2011/7/1 Yaşar Arabacı <<a href="mailto:yasar11732@gmail.com" target="_blank">yasar11732@gmail.com</a>>:<br>
<div><div></div><div>><br>
> Hi,<br>
><br>
> I was wondering how can I generate translation file for a ui generated by<br>
> QtDesigner. I have no early experience of using translations, so I can't<br>
> figure it out how to make this work. Should I mark strings in my main module<br>
> or does QtDesigner somehow provide it for me?<br>
<br>
</div></div>You don't need to "mark" strings in UI files. Just use "pylupdate4"<br>
on UI files as you would use it on python files, and translations will<br>
be extracted from UI files, too. If you load or compile UI files,<br>
PyQt generates the necessary code to translate the user interface.<br>
<font color="#888888"><br>
Sebastian Wiesner<br>
</font></blockquote></div></div></div><br>
</div><br>