Localizing your application has several phases that typically overlap throughout a project's life cycle. These phases are:
As you write your application, you place strings to localize in your application in a specific way so that Qt can identify the strings as needing localization.
Periodically, you extract all the strings in your application and give them to translators in order to translate.
Translators provide translations for the strings in your application.
You compile translation files with the translated strings for each language you want to support.
The
tr
andqsTr
functions for C++ and QML let you identify the strings in your application that require localization. Qt provides four tools to facilitate these phases.The
lupdate
command generates a list of the strings that need localization in your application.Translators use Qt Linguist to provide translations of the strings in your application.