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

lupdate doesn't update an existing .ts file with new comments for translators

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.1
    • Tools: Linguist
    • None
    • Windows

    Description

      <Issue>
      When there's an already existing .ts file without comments for translators(https://doc.qt.io/qt-6/i18n-source-translation.html#add-comments-for-translators), running lupdate again for the same .qml file with newly added comments for translators doesn't update the .ts file.

      <Reproduction Step>

      1. Clone https://git.qt.io/mikio_hirai/multi-language-blog/-/tree/master?ref_type=heads
      2. Check the original qml_ja_JP.ts file without comments for translators.
      3. Update the Main.qml with the attached Main.qml to this ticket, which contains comments for translators.
      4. Run the lupdate as follows
      C:\work\i18n_test\multi_language>C:\Qt\6.7.1\msvc2019_64\bin\lupdate.exe . -extensions qml -ts i18n/qml_ja_JP.ts 
      1. Check the qml_ja_JP.ts

      <Expected result>
      qml_ja_JP.ts has newly added comments for translators

      <Actual result>
      qml_ja_JP.ts doesn't have newly added comments for translators

      <Workaround>

      Generate another .ts file, instead of updating the existing one. (The one generated on my side is atteched to this ticket)

      C:\work\i18n_test\multi_language>C:\Qt\6.7.1\msvc2019_64\bin\lupdate.exe . -extensions qml -ts i18n/qml_updated_ja_JP.ts 

      Attachments

        1. Main.qml
          0.6 kB
        2. qml_updated_ja_JP.ts
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes