O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Translating a string

To implement the translation, we could just provide a value between the translation opening and closing tags, and remove the type="unfinished" attribute. However, there is a less error-prone, and potentially more efficient way of doing it: Qt Linguist.

Qt Linguist is a UI tool that is shipped with the Qt distribution. Its purpose is to make it easy also for non-programmers to work on UI translations. You can open the TS file in Qt Linguist by right clicking on it in the Projects pane, and selecting Open with... > Qt Linguist. If you open the cmmonitor_en_US.ts file, you should see the following:

As you can see, it provides ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required