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?
Asked
Active
Viewed 3,866 times
10

Vaughn Cato
- 63,448
- 5
- 82
- 132

Matěj Zábský
- 16,909
- 15
- 69
- 114
3 Answers
15
msgcat
is meant for just this thing: it concatenates and merges PO files. msgmerge
is for merging PO files with an updated POT file.

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

mat
- 12,943
- 5
- 39
- 44
-
1msgmerge seemed like it attempted to merge the files, but it missed cca 40% of the messages (they were missing in the result) even with the fuzzy option on. But I did as you sat - concatenated the two files and applied msquniq on the. Worked like a charm, thanks :) – Matěj Zábský Dec 10 '08 at 13:49
-
1As @seanf pointed out, `msgcat` is the right tool for this, not `msgmerge`. – phunehehe Dec 12 '12 at 06:49