bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I merge .po files?


From: Bruno Haible
Subject: Re: How do I merge .po files?
Date: Wed, 19 May 2010 22:44:32 +0200
User-agent: KMail/1.9.9

Hi,

Thorsten Glaser wrote:
> Both msgmerge (throws away all translations from the 4.8 one)
> and msgcat seem to be not quite what I need, only close.

msgmerge is made for updating a PO file with respect to a modified
POT file, it's not a general tool for merging two PO files produced
by independent translators.

msgcat is much better at doing that, but:
> I would like to get a merged version of the both (the 4.8 based
> one has correct file location information), maybe a couple of
> questions in corner cases but not asked for every single one:
> $ fgrep -c msgid de.po
> 2689

Use of msgcat requires deliberation about the best translation for
every message. If you want to spend that much effort, I would suggest
to use the tools in chapter "Manipulating PO files" [1], especially
msgcomm and msggrep. With msgcomm you pick one of the two translations,
throwing away the other one. With msggrep you can create subsets of
the PO files on which you want to apply a specific strategy.

Bruno

[1] http://www.gnu.org/software/gettext/manual/html_node/Manipulating.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]