<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 must admit I have never looked into anything related to internationalization. With my limited understanding of this, they way I see it is there are two parts:</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">1. generate the translation that maps string A to translated string B.</span><br></div><div><span style="font-size:12.8px">2. make sure the application, before showing the string in the UI, does a lookup through the translation table via QObject::tr().</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">What I explained (or hoping to address) was (2). For (1), you'll have to manually (or via tool) process the xmls in ParaView to extract labels and documentation texts to determine the phrases that need to be translated (1).</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Hope that helps, but I hope someone more familiar with internationalization can chime in.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Utkarsh</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 16, 2017 at 10:56 AM, Шагит Зиганшин <span dir="ltr"><<a href="mailto:zig.shagit@ya.ru" target="_blank">zig.shagit@ya.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" <<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>>:</div><div><div class="h5"><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/opensou<wbr>rce/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/mail<wbr>man/listinfo/paraview-develope<wbr>rs</a><br>
</blockquote></div><br></div>
</blockquote><div><br></div><div><br></div></div></div><div>Шагит Зиганшин</div><div><br></div></blockquote></div><br></div>