Localization 将.po文件连接到单个.po文件中

Localization 将.po文件连接到单个.po文件中,localization,gettext,Localization,Gettext,我必须连接以下两个.PO文件 firstfile.po msgid "Select game" msgstr "Choisissez le jeu" msgid "Without answers1" msgstr "Guide d'achat1" secondfile.po msgid "Select game" msgstr "Choose category" msgid "any one answer" msgstr "Guide d'achat 在这里,当我使用msgcat而不

我必须连接以下两个.PO文件

firstfile.po

msgid "Select game"
msgstr "Choisissez le jeu"


msgid "Without answers1"
msgstr "Guide d'achat1"
secondfile.po

msgid "Select game"
msgstr "Choose category"


msgid "any one answer"
msgstr "Guide d'achat
在这里,当我使用
msgcat
而不使用
——使用first
时,获得的输出po如下所示

output.po

msgid "Select game"
msgstr "Choisissez le jeu"


msgid "Without answers1"
msgstr "Guide d'achat1


msgid "any one answer"
msgstr "Guide d'achat
msgid "Select game"
msgstr "Choisissez le jeu"


msgid "Without answers1"
msgstr "Guide d'achat1"

msgid "Select game"
msgstr "Choose category"


msgid "any one answer"
msgstr "Guide d'achat
上面的v输出文件不包含为重复的msgid找到的所有msgstr

预期产量为

output.po

msgid "Select game"
msgstr "Choisissez le jeu"


msgid "Without answers1"
msgstr "Guide d'achat1


msgid "any one answer"
msgstr "Guide d'achat
msgid "Select game"
msgstr "Choisissez le jeu"


msgid "Without answers1"
msgstr "Guide d'achat1"

msgid "Select game"
msgstr "Choose category"


msgid "any one answer"
msgstr "Guide d'achat

有没有办法在输出PO文件中重复相同的
msgid
也许您可以使用这样的comand
复制firstfile.PO+secondfile.PO output.PO

您的意思是
cat firstfile.PO secondfile.PO>output.PO