Translation issue with Qt strings

 

idiallo's picture

There's a translation issue with the internal Qt strings. We've noticed it in the standalone OpenRPT, but the problem might exist also in the xTuple ERP client: the Qt strings are not translated (for instance in the font selection dialog).
To have them translated, i think you have to include the following code in the application init:

QTranslator qtTranslator;
qtTranslator.load("qt_" + QLocale::system().name());
app.installTranslator(&qtTranslator);

...and to ship all the qt_*.qm you need with your application.

Am i correct ?

PS i've tried to test the xTuple ERP client for this but i don't kow how to activate translations...