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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.11.1
    • Translations (l10n)
    • None
    • 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

              buddenha Oswald Buddenhagen
              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