2012-03-13 73 views
0

我必须串联以下两个.po文件级联这些.po文件到一个单一的.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 

这里,等我在不使用--use-first的情况下使用msgcat进行拼接,所获得的输出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 

Thev上述输出文件不列入包含所有找到的重复MSGID的msgstrs。

预期输出是

output.po

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 

有什么办法重复相同msgid输出PO文件

回答

0

也许你可以使用这样的COMAND copy firstfile.po+secondfile.po output.po

+0

难道你的意思是'cat firstfile.po secondfile.po> output.po'? – 2012-07-22 13:16:06