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

lupdate produces identical rows

    XMLWordPrintable

Details

    • Linux/Wayland, Windows
    • 10488623e (dev), 6a56aad6d (6.5), fe97c27a4 (6.4), 196bf75d6 (tqtc/lts-6.2)

    Description

      In Qt Creator:
      I have checked "programmname_lupdate" in "Project settings" , "Build steps", "Details",

      lupdate is running every time the program is compiled.
        

      {{Updating '../code/i18n/_streamcapture2_it_IT.ts'...
          Found 432 source text(s) (0 new and 432 already existing)
      Updating '../code/i18n/_streamcapture2_sv_SE.ts'...
          Found 432 source text(s) (0 new and 432 already existing)
      Updating '../code/i18n/_streamcapture2_template_xx_XX.ts'...
          Found 432 source text(s) (0 new and 432 already existing)}}
       

      The problem is (in the ts file)
       

      <message>
      <location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><source>Save as text file</source><translation>Spara som textfil</translation>
      </message>
       

      A new identical row is created every time!
       
      In CMakeLists.txt
       

      set(TS_FILES     
             ${CMAKE_CURRENT_SOURCE_DIR}/i18n/_streamcapture2_it_IT.ts     
             ${CMAKE_CURRENT_SOURCE_DIR}/i18n/_streamcapture2_sv_SE.ts     
             ${CMAKE_CURRENT_SOURCE_DIR}/i18n/_streamcapture2_template_xx_XX.ts
      )
      
      qt_add_lupdate(streamcapture2 TS_FILES ${TS_FILES})}}
       

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            posktomten Ingemar Ceicer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes