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

Loaded translations exported by lrelease with '-compress' option do not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.11.1
    • Fix Version/s: None
    • Component/s: Translations (I10n)
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      .qm files exported with -compress option does not dereference. 

      Eg : 

      eng_Latn_US.ts has

      <?xml version="1.0" encoding="utf-8"?>
      <!DOCTYPE TS>
      <TS version="2.1" language="eng_Latn_US">
      <context>
      <name></name>
      <message id="MSG_ID">
      <source></source>
      <translation>Hello World</translation>
      </message>
      </context>
      </TS>

      Export this with:

      lrelease -idbased -compress eng_Latn_US.ts

      Use this in the project :

      qtTrId("MSG_ID") --> Returns "MSG_ID"

       

      Export this with 

      lrelease -idbased eng_Latn_US.ts

      Use this in the project :

      qtTrId("MSG_ID") --> Returns "Hello World"

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              buddenha Oswald Buddenhagen
              Reporter:
              karthik_manjunath Karthik Manjunath
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes