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

lrelease: Empty finished items have -1 length when released, falling back to the original

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.15.0
    • Tools: Linguist
    • None
    • Windows

    Description

      It seems that if the translation is empty and marked as finished (useful in some cases), the released file has the message but the translation length is -1 (FF FF FF FF), which will show the original string in the application (-1 is an invalid length, and for sure is causing issues while reading it, falling back to original)

      This also affects Qt Linguist but in the case of opening the ts file, and releasing it without changing anything with the finished empty string. If that finished empty string changed to something, and emptyed again, and saved and released, the length is 0 as it should be.

      Attached both the TS and QM files.

      Attachments

        1. qtbug-86774.zip
          2 kB
        2. test_correct.qm
          0.2 kB
        3. test.qm
          0.2 kB
        4. test.ts
          0.3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            safa alfulaij Safa Alfulaij
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes