Book Image

Application Development with Qt Creator - Second Edition

Book Image

Application Development with Qt Creator - Second Edition

Overview of this book

Table of Contents (20 chapters)
Application Development with Qt Creator Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Understanding the task of localization


Localizing your application has several phases that typically overlap throughout a project's life cycle. These phases are:

  1. 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.

  2. Periodically, you extract all the strings in your application and give them to translators in order to translate.

  3. Translators provide translations for the strings in your application.

  4. You compile translation files with the translated strings for each language you want to support.

  5. The tr and qsTr functions for C++ and QML let you identify the strings in your application that require localization. Qt provides four tools to facilitate these phases.

  6. The lupdate command generates a list of the strings that need localization in your application.

  7. Translators use Qt Linguist to provide translations of the strings in your application.

  8. The lrelease command takes the translated strings from...