PDA

View Full Version : Translation when using Qt-Creator forms



flywheel
29th August 2012, 05:15
Hello

How does one come about adding localization support to ones Qt-widget app, when using Qt-Creator forms ?
Since this means the strings are defined in XML instead.:confused:


In advance
Many thanks
Peter

Ginsengelf
29th August 2012, 07:09
Hi, when you look at the ui_XYZ.h file that is generated from XYZ.ui, you will see that all strings are wrapped in QApplication::translate(). You can translate them using Qt Linguist like any other string.

Ginsengelf

flywheel
31st August 2012, 12:15
That's awesome - thanks Ginsengelf

Then I only will need to run lupdate and I've got the necessary .ts files ?

Many regards
flywheel