2012-03-13 74 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