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

[REG 5.15.8 -> 5.15.9] qt5_create_translation breaks projects with multiple same-named ts files

    XMLWordPrintable

Details

    • All
    • d2eaccfe7 (dev), 0b75e045d (6.5), c04dd1721 (tqtc/lts-5.15)

    Description

      Resulted from https://github.com/opentoonz/opentoonz/issues/4831

      In the opentoonz projects, translations are structured by directory instead of by name:

      toonz/sources/translations/chinese/toonz.ts
      toonz/sources/translations/czech/toonz.ts
      toonz/sources/translations/french/toonz.ts
      toonz/sources/translations/german/toonz.ts
      toonz/sources/translations/italian/toonz.ts
      toonz/sources/translations/japanese/toonz.ts
      toonz/sources/translations/korean/toonz.ts
      toonz/sources/translations/norwegian_bokmal/toonz.ts
      toonz/sources/translations/russian/toonz.ts
      toonz/sources/translations/spanish/toonz.ts
      

      This breaks qt5_add_translation since https://codereview.qt-project.org/c/qt/qttools/+/396194 with the following error:

        Attempt to add a custom rule to output
      
          /build/opentoonz/src/build/tnzcore/.lupdate/tnzcore.ts.stamp.rule
      
        which already has a custom rule.
      Call Stack (most recent call first):
        CMakeLists.txt:604 (qt5_create_translation)
        tnzcore/CMakeLists.txt:262 (add_translation)
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes