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

qt_add_lupdate adds extra location for QML files

XMLWordPrintable

    • All
    • 506cac019 (dev), d5b6d0a4b (6.8), 1e1dd0631 (6.7)

      to reproduce, use the QML i18n example:

      $ cp -r ~/Qt/Examples/Qt-6.6.1/qml/qml-i18n .
      $ cd qml-i18n
      $ mkdir build && cd build
      $ ~/Qt/6.7.0/gcc_64/bin/qt-cmake .. && ninja && ninja update_translations && cat ../i18n/qml_fr.ts
      

      this displays at the end

      <?xml version="1.0" encoding="utf-8"?>
      <!DOCTYPE TS>
      <TS version="2.1" language="fr" sourcelanguage="en">
      <context>
          <name>qml-i18n</name>
          <message>
              <location filename="../qml-i18n.qml" line="+21"/>
              <location filename="../build/translated/qml-i18n.qml" line="+21"/>
              <source>Hello</source>
              <translation>Bonjour</translation>
          </message>
      </context>
      </TS>
      

      with 6.6.1 we get

      <?xml version="1.0" encoding="utf-8"?>
      <!DOCTYPE TS>
      <TS version="2.1" language="fr" sourcelanguage="en">
      <context>
          <name>qml-i18n</name>
          <message>
              <location filename="../qml-i18n.qml" line="+21"/>
              <location/>
              <source>Hello</source>
              <translation>Bonjour</translation>
          </message>
      </context>
      </TS>
      

      which has an extra empty location, which is also weird.

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

            jbornema Joerg Bornemann
            jbornema Joerg Bornemann
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes