Merge translation files (.ts) with existing .ts files using QT Utilities (lconvert)

后端 未结 3 536
忘掉有多难
忘掉有多难 2021-02-07 03:07

Here\'s my problem: We\'ve got .ts files for nine different languages for our product. We\'ve added about 100 new strings that need to be translated, but some are for our next

3条回答
  •  说谎
    说谎 (楼主)
    2021-02-07 03:14

    The answer doesn't use lupdate, it lies in another utility called lconvert. It's quite easy to create a secondary file that only contains the strings you're interested in (and delete those same strings from the primary file), then run:

    lconvert -i primary.ts secondary.ts -o complete.ts

    This will take all the strings from the two input files and put them together into the output file. Using this method I was able to create a zero difference file (other than time stamp) of the original file that I'd split the two primary & secondary files from.

    This question didn't get a lot of attention, but maybe someone will have this same problem and this will help.

提交回复
热议问题