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

lconvert input file ordering confusion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.9.0 FF
    • 6.7.1
    • Tools: Linguist
    • None
    • Windows
    • 78245d477 (dev)

    Description

      Situation: combining .qm files into one .qm file

      qt_es.qm contains "dependency catalog" entries only,

      whereas qt_pt_PT.qm contains a lot of translated texts.

       

      So, we need to combine qtbase_es (and friends) AND qt_es, to get a combined qm file for each language.

      If you call lconvert with qt_es first, like:

      lconvert -i qt_es.qm qtbase_es.qm

      The "dependency catalog" entries remain in the output file, and will not load if those subfiles are not distributed to the user.

      If you reorder the call, ie

      lconvert -i qtbase_es.qm qt_es.qm

      Then the dependency-catalog lines are NOT included, and the translation file will successfully load.

       

      This is very confusing, as the reason for refusing to load the translation is not obvious, and required tracing through the sourcecode to discover it was failing when it couldn't find the qtbase_es.qm file

       

      Attachments

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

        Activity

          People

            masoud.jami Masoud Jami
            elegant_dice Paul
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes