<div>Utkarsh,</div><div> </div><div>I really don't understand how to use default Qt translation tools, like lupdate and lrelease, with non-source files (XML in our case). Things like QT_TRANSLATE_NOOP wont work I think.</div><div> </div><div>I always thought lupdate parsing source code and seeking strings marked with tr(), so I don't know how fixing pqProxyWidget will help us to implementing localization.</div><div> </div><div>If I'm wrong, please correct me!</div><div> </div><div>Shagit Ziganshin</div><div><br /></div><div><br /></div><div>16.02.2017, 17:18, "Utkarsh Ayachit" <utkarsh.ayachit@kitware.com>:</div><blockquote type="cite"><div dir="ltr"><span style="font-size:12.8px;">Shagit,</span><br /><div><span style="font-size:12.8px;"><br /></span></div><div><span style="font-size:12.8px;">I believe a lot of the code that shows labels from XML on the UI doesn't go through QObject::tr() currently. The first step would be fix all of that to use tr(). A starting point will be pqProxyWidget.</span></div><div><span style="font-size:12.8px;"><br /></span></div><div><span style="font-size:12.8px;">Utkarsh</span></div></div><div><br /><div>On Thu, Feb 16, 2017 at 4:35 AM, Shagit Ziganshin <span dir="ltr"><<a href="mailto:zig.shagit@ya.ru" target="_blank">zig.shagit@ya.ru</a>></span> wrote:<br /><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello!<br />
<br />
I want to implement in Paraview localization to other languages by using the translation module of Qt. But I found the problem that some widgets are declared in XML and have no idea how to implement them in translation functions (like QObject::tr). Can anyone suggest ways to get around these limitations? Or is it impossible in theory?<br />
<br />
Shagit Ziganshin<br />
______________________________<wbr />_________________<br />
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank">www.kitware.com</a><br />
<br />
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr />opensource/opensource.html</a><br />
<br />
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr />Paraview-developers</a><br />
<br />
Follow this link to subscribe/unsubscribe:<br />
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr />mailman/listinfo/paraview-<wbr />developers</a><br />
</blockquote></div><br /></div>
</blockquote><div><br /></div><div><br /></div><div>Шагит Зиганшин</div><div><br /></div>