Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-121499

TS_FILE_BASE argument of qt_add_translations ignored by QQmlApplicationEngine

    XMLWordPrintable

Details

    Description

      When using qt_add_translations, the default name format of .ts files is qml_<language-code>[_<country-code>].ts

      The prefix of the name ("qml" by default) can be changed using TS_FILE_BASE. When it is set, the translation files are generated correctly.

      However, QQmlApplicationEngine doesn't pick up on it and assumes the prefix is "qml" by hardcoding it in void QQmlApplicationEnginePrivate::_q_loadTranslations(). This can lead to translation files not being found at run time.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtqmlteam Qt Qml Team User
            olivier.decanniere Olivier De Cannière
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes