Is it possible to combine two .po translation files together?

后端 未结 3 662
春和景丽
春和景丽 2021-02-03 23:04

We have two .po files, each from different branches of a piece of software.

We need to combine these into a single .po file.

There are duplicates between the two

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-03 23:33

    I use msgmerge:

    msgmerge [old_file.po] [new_file.po] > output.po
    

    It works for me, but be aware that it does a silly merge, it is, it discards the entries in the old_file (new file overwrites old one).

提交回复
热议问题