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

consolidate information about qttranslations catalogs

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 6.4.0 Beta4
    • Build System: CMake
    • None
    • All
    • 586cb3b95 (6.5), 3c66def23 (dev), c76678815 (6.5)

    Description

      qttranslations defines catalogs that collect the translations of a set of modules.

      Example:

      add_ts_targets(qtdeclarative DIRECTORIES qtdeclarative/src
                     EXCLUDE declarative/src/quickcontrols2/designer)
      

      windeployqt hardcodes the mapping "module -> catalog" like this:

      static QtModuleEntry qtModuleEntries[] = {
      ...
          { QtQmlModule, "qml", "Qt6Qml", "qtdeclarative" },
          { QtQuickModule, "quick", "Qt6Quick", "qtdeclarative" },
      ...
      }
      

      Other deployment methods also require such a mapping - unless they just deploy all translations.

      The mapping in windeployqt is already not quite up-to-date. We should not have these hard-coded mappings. There should be some way to have qttranslations as authoritative source for the module -> catalog mapping.

      Ideally, the table at https://doc.qt.io/qt-6/internationalization.html#available-catalogs would also be automatically updated based on the information in qttranslations.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes