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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.11.1
    • Translations (I10n)
    • None
    • Windows

      .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"

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes