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

Support embedding Qt's translation files into executable

XMLWordPrintable

    • 6e7a77330 (dev)

      We can embed the application's *.qm files as resource files (see QTBUG-89399):

      # qmake
      CONFIG += embed_translations
      TRANSLATIONS += app_de.ts
      
      # CMake
      qt6_add_translations(my_app
          TS_FILES my_app_de.ts my_app_no.ts
          RESOURCE_PREFIX "/translations")

       

      However, Qt's own translations (e.g. qtbase_de.qm) still need to be deployed to disk (using windeployqt, for example).

      It would be good to be able to embed Qt's own translations into the executable itself at build-time too.

        For Gerrit Dashboard: QTBUG-121980
        # Subject Branch Project Status CR V

            kkohne Kai Köhne
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes