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

Compiling translations

Now that the source translation files are ready, we need to compile them and ship them with the program. To compile the files, you need to run the lrelease tool. You'll find it under Qt Creator's Tools > External > Qt Linguist menu, next to lupdate.

Because of a limitation of the lrelease tool, it won't work out of the box with .pro files contained in subprojects, like in the case of cmmonitor. You can circumvent this limitation by opening cmmonitor as an independent project in Qt Creator, instead of having it as a subproject of qt5blueprints2-projects.

If you run lrelease, it should create two files named cmmonitor_en_US.qm and cmmonitor_it_IT.qm in the same folder where the TS files are. Check the General Messages ...

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