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

Support embedding Qt's translation files into executable

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes