<div dir="ltr">Hi all,<div>I want to translate both the gui and all the log messages of my plugin in a certain language (e.g. Italian). I'm using Qt Creator and Qt Linguist.</div><div>I created a <a href="http://plugin.pro">plugin.pro</a> file which contains all the file with text strings that have to be translated (i.e. my .ui and .py files). Then I used Qt Creator to generate the plugin_it.ts file and I modified this file with Qt Linguist generating at the end a .qm file.</div><div>The translation of the gui (file .ui) works fine but I have problems with the translation of the log messages in the .py file.</div><div>I marked all the strings that I want to translate putting them inside the tr() function but Qt Linguist does not seem to recognize them as strings to be translated.</div><div>Messages are simple text string appended to a QTextBrowser widget. </div><div><br></div><div>The plugin was initially created with the Plugin Builder, therefore I have a tr() function, I have imported QTranslator and all the rows created by Plugin Builder regarding translation have not been modified.</div><div><br></div><div>Any suggestion?</div><div><br></div><div>Thanks in advance,</div><div>Roberta</div></div>