Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Merge 2 GetText files

I have two medium-sized web applications that I'm merging into one. They are both localized with GetText and have large amout of common strings, so merging them manually would be extremely annoying. What is the fastest way to merge the two PO files?

like image 625
Matěj Zábský Avatar asked Dec 10 '08 13:12

Matěj Zábský


2 Answers

msgcat is meant for just this thing: it concatenates and merges PO files. msgmerge is for merging PO files with an updated POT file.

like image 192
seanf Avatar answered Sep 27 '22 18:09

seanf


I'm sure msgmerge can be coerced into doing just that. (I mean, concat your two .po files, and let it sort things out.)

like image 36
mat Avatar answered Sep 27 '22 16:09

mat