lconvert misses something when merging two *.ts files, depending on the order of the command line



  • The command line:

    /usr/lib/x86_64-linux-gnu/qt4/bin/lconvert --verbose -i gui_jp.ts common_gui_jp.ts -o qa_jp.ts

    makes me a *.ts file, named qa_jp.ts, which contains a particular line. I prove this by grepping:

    > grep "Make a copy of current %1" *.ts
    > common_gui_jp.ts:3089: <source>Make a copy of current %1.</source>
    > qa_jp.ts:4233: <source>Make a copy of current %1.</source>

    Yes, there it is, in both the original common_gui_jp.ts and the new combined qa_jp.ts

    If I repeat with the command line slightly different:

    /usr/lib/x86_64-linux-gnu/qt4/bin/lconvert --verbose -i gui_jp.ts common_gui_jp.ts -o qa_jp.ts

    and then grep again:

    > grep "Make a copy of current %1" *.ts
    > common_gui_jp.ts:3089: <source>Make a copy of current %1.</source>

    It is only in the original. However, lots and lots of lines that are in common_gui_jp.ts are found in the new qa_jp.ts file, so clearly lconvert is not outright skipping the file.

    Does anyone know of some reason lconvert might choose to skip particular lines when merging multiple *.ts files?


  • Lifetime Qt Champion

    Hi,

    What is the difference between both call to convert ?



  • Oops. I got that wrong :)

    The first line is:

    /usr/lib/x86_64-linux-gnu/qt4/bin/lconvert --verbose -i gui_jp.ts common_gui_jp.ts -o qa_jp.ts

    The second line is

    /usr/lib/x86_64-linux-gnu/qt4/bin/lconvert --verbose -i common_gui_jp.ts gui_jp.ts -o qa_jp.ts

    The filenames "common_gui_jp.ts" and "gui_jp.ts" are switched around.


  • Lifetime Qt Champion

    Then indeed, it looks like the parsing does something fishy. Can you create two minimal ts files that shows the behavior ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.