Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. "qt_add_lupdate" dublicate lines

"qt_add_lupdate" dublicate lines

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 598 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • posktomtenP Offline
    posktomtenP Offline
    posktomten
    wrote on last edited by
    #1

    Hey!

    Now it's a bit strange again!
    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 edentical row is created every time!

    I CMakeLists.tex

    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})
    

    posktomten

    1 Reply Last reply
    0
    • posktomtenP Offline
      posktomtenP Offline
      posktomten
      wrote on last edited by
      #6

      https://bugreports.qt.io/browse/QTBUG-109316

      posktomten

      1 Reply Last reply
      1
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #2

        This is no cmake problem but lupdate - sometimes it's not as intelligent as it should be.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        1
        • kkoehneK Offline
          kkoehneK Offline
          kkoehne
          Moderators
          wrote on last edited by
          #3

          This indeed looks like a bug in lupdate. Which Qt version are you testing with, on which platform?

          Would be great if you could file a bug wiht the details at https://bugreports.qt.io/projects/QTBUG , component 'Tools: Linguist'.

          Director R&D, The Qt Company

          1 Reply Last reply
          0
          • posktomtenP Offline
            posktomtenP Offline
            posktomten
            wrote on last edited by
            #4

            I will file a bug report.

            Tested with
            lupdate 6.4.1 on Ubuntu 20.04 and 22.04 (Qt Creator 9.0.0)
            lupdate 6.4.1 on Windows 10 (Qt Creator 9.0.0)

            I'll check how it works with Qt5.15.7, I haven't done that yet.

            posktomten

            posktomtenP 1 Reply Last reply
            0
            • posktomtenP posktomten

              I will file a bug report.

              Tested with
              lupdate 6.4.1 on Ubuntu 20.04 and 22.04 (Qt Creator 9.0.0)
              lupdate 6.4.1 on Windows 10 (Qt Creator 9.0.0)

              I'll check how it works with Qt5.15.7, I haven't done that yet.

              posktomtenP Offline
              posktomtenP Offline
              posktomten
              wrote on last edited by
              #5

              @posktomten
              If I configure the same program with qmake and run

              lupdate progname.pro
              

              Then everything works as it should.

              posktomten

              1 Reply Last reply
              0
              • posktomtenP Offline
                posktomtenP Offline
                posktomten
                wrote on last edited by
                #6

                https://bugreports.qt.io/browse/QTBUG-109316

                posktomten

                1 Reply Last reply
                1

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved