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

The content in Qt Linguist UI doesn't get updated when opening an updated .ts file while the previous .ts is opened

    XMLWordPrintable

Details

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

    Description

      <Issue>

      Opening an updated .ts file while the previous version of .ts file is open in Qt Linguist doesn't show the content of updated .ts file in the UI.

      <Reproduction Step>

      (1) Clone https://git.qt.io/mikio_hirai/multi-language-blog/-/tree/master?ref_type=heads

      C:\work\i18n_test\repro>git clone git@git.qt.io:mikio_hirai/multi-language-blog.git

      (2) Checkout to 1d71cfa 

      C:\work\i18n_test\repro\multi-language-blog>git checkout 1d71cfa 

      (3) Run lupdate (The generated .ts is attached to this ticket)

      C:\work\i18n_test\repro\multi-language-blog>C:\Qt\6.7.1\msvc2019_64\bin\lupdate.exe . -extensions qml -ts i18n/qml_initial_ja_JP.ts
      Scanning directory '.'...
      Updating 'i18n/qml_initial_ja_JP.ts'...
          Found 2 source text(s) (2 new and 0 already existing) 

      (4) Open the generated qml_initial_ja_JP.ts in Qt Linguist (Qt 6.7.1 msvc2019)

      (5) Update the Main.qml with the attached Main.qml
      <updated Main.qml>

      Not Evaluated

       

      (6) Run lupdate again to update the qml_initial_ja_JP.ts.

      C:\work\i18n_test\repro\multi-language-blog>C:\Qt\6.7.1\msvc2019_64\bin\lupdate.exe . -extensions qml -ts i18n/qml_initial_ja_JP.ts
      Scanning directory '.'...
      Updating 'i18n/qml_initial_ja_JP.ts'...
          Found 4 source text(s) (2 new and 2 already existing) 

      (7) Open the updated qml_initial_ja_JP.ts in the already opened Qt Linguist with the previous .ts file opened.

       

      <Expected Result>

      The content of the updated qml_initial_ja_JP.ts gets displayed in Qt Lingiust UI.

      <Actual Result>
      The Qt Linguist UI doesn't get updated.

      Attachments

        1. image-2024-09-04-11-19-43-456.png
          image-2024-09-04-11-19-43-456.png
          128 kB
        2. image-2024-09-04-11-21-25-662.png
          image-2024-09-04-11-21-25-662.png
          94 kB
        3. image-2024-09-04-11-22-40-580.png
          image-2024-09-04-11-22-40-580.png
          71 kB
        4. image-2024-09-04-11-25-14-117.png
          image-2024-09-04-11-25-14-117.png
          137 kB
        5. image-2024-09-04-11-26-40-886.png
          image-2024-09-04-11-26-40-886.png
          68 kB
        6. image-2024-09-04-11-27-48-615.png
          image-2024-09-04-11-27-48-615.png
          124 kB
        7. Main.qml
          0.7 kB
        8. qml_initial_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