<div dir="ltr"><div dir="ltr">Dear All,<div><br></div><div>I'm working on a plugin that has been ported to QGIS 3.x</div><div>Everything works fine, even all translations are corrected generated in all other .py files I'm not able to translate the string in the main .py file of the plugin.</div><div><br></div><div>In the <span style="color:rgb(111,66,193);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">initGui </span>function I have these lines:</div><div><br></div><div><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container" style="box-sizing:border-box;border-collapse:collapse;border-spacing:0px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="gmail-LC81" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible"> <span class="gmail-pl-c1" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre;box-sizing:border-box;color:rgb(0,92,197)">self</span><font face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre">.CreateReceiverPoints_item </span></font><span class="gmail-pl-k" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre;box-sizing:border-box;color:rgb(215,58,73)">=</span><font face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre"> QAction(QIcon(</span></font><span class="gmail-pl-s" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre;box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>:/plugins/opeNoise/icons/icon_CreateReceiverPoints.png<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span><font face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre">), </span></font><span class="gmail-pl-c1" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre;box-sizing:border-box;color:rgb(0,92,197)">self</span><font face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre">.tr(</span></font><span class="gmail-pl-s" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre;box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>Create Receiver Points<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span><font face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre">), </span></font><span class="gmail-pl-c1" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre;box-sizing:border-box;color:rgb(0,92,197)">self</span><font face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre">.iface.mainWindow()) </span></font><br>Even if I double checked that the mainfile openoise.py is added in the /<a href="http://translation.pro">translation.pro</a> such strings are not present inside the corresponding .ts files<br><br>Where I'm wrong?<br><br>the code is available here: <br><a href="https://github.com/pierluigiderosa/openoise/tree/qgis3">https://github.com/pierluigiderosa/openoise/tree/qgis3</a><br><br>Thanks to all<br>Pierluigi</td></tr></tbody></table></div><div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Ing. Pierluigi De Rosa (PhD in Earth Science)</div><div dir="ltr">Contract Professor of Geographic Information System at University of Perugia<br>cel: 349755826<span><span dir="ltr">8</span></span> / fax: 075 7823038<br>skype: pierluigi.derosa</div></div></div></div></div></div></div></div></div>