Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1809

Add Support for trPath Property in the Qt.core Module

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • Not Evaluated
    • None
    • some future version
    • Libraries: Qt
    • None
    • 17067df3a (master)

    Description

      Summary:
      This proposal suggests the addition of the trPath property to the Qt.core module. The property will provide access to the installation path of Qt's translation files, improving flexibility for developers who wish to manually handle translations.

      Motivation:
      In many cases, developers rely on tools like *deployqt to handle the deployment of Qt translations. However, there are scenarios where manually copying Qt translation files is preferred or necessary. This is especially true for projects that aim for enhanced compatibility with qmake, where access to the QT_INSTALL_TRANSLATIONS path is readily available.

      Currently, the Qt.core module in Qbs does not expose the Qt translations path. By adding the trPath property, developers will have more control over how Qt translations are handled in their project.

      Proposal:
      1. Add the trPath property to the Qt.core module.
      2. This property should point to the path where Qt translations are installed.
      3. The property should be populated during the configuration step, based on the Qt installation being used.

      Benefits:

      • Greater flexibility for developers who wish to manually manage Qt translations.
      • Improved compatibility with qmake-based projects.
      • Provides a seamless transition for developers familiar with the qmake environment when migrating to Qbs.
      • Reduces reliance on *deployqt and similar tools, which might not be suitable for all workflows.

      Use Case:
      Developers can access Qt.core.trPath to manually copy the required translation files during the build process, enabling customized translation handling for different platforms and deployment configurations.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            dismine Roman Telezhynskyi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes