Add translations to the project
At first you have to prepare your app for translation by marking strings which you want to translate:
tr()
In your qmake project file, the following variable TRANSLATIONS has to be added and must contain all language files you want to create initially.
TRANSLATIONS = languages/TranslationExample_en.ts >languages/TranslationExample_de.ts
You will find lupdate and lrelese int the QT Creater at: Extras-> extern -> linguist
By calling lupdate
lupdate -verbose TranslationExample.pro
You create the language files (.ts), which you translate by using the tool Qt >Linguist.
linguist languages/TranslationExample_en.ts languages/TranslationExample_de.ts
After doing this, you call lrelease to create the binary language files (.qm):
lrelease TranslationExample.pro
You will find this manual as a long version :
http://wiki.qt.io/How_to_create_a_multi_language_application