10

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?

Vaughn Cato
  • 63,448
  • 5
  • 82
  • 132
Matěj Zábský
  • 16,909
  • 15
  • 69
  • 114

3 Answers3

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
  • 1
    msgmerge 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
  • 1
    As @seanf pointed out, `msgcat` is the right tool for this, not `msgmerge`. – phunehehe Dec 12 '12 at 06:49
0

"WinMerge" can be very helpful

Samiksha
  • 6,122
  • 6
  • 29
  • 28