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

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

How do I merge .po files?


From: Thorsten Glaser
Subject: How do I merge .po files?
Date: Wed, 19 May 2010 15:02:54 +0200 (CEST)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

Hello everyone,

I’m currently stuck with the following problem:

I have two 「de.po」 files belonging to different branches
of the same code:
• one from foo-project 5.0, almost fully translated
• one from a customisation (not quite fork, more like stable
  branch plus production-use patches) of foo-project 4.8

The latter does contain translations not in the 5.0 file,
or better ones for some of them, but doesn’t contain a lot
of translations that are in the 5.0 one. It might be possible
to get a “base” version common to both of them, but since .po
merging is different from e.g. CVS merging, I don’t see the
point in it.

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

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

That would be quite a lot. Afterwards, the resulting file will
go to a cow-orker who’ll be translating what is still untrans-
lated (but almost certainly not looking at every single already
translated string either), using KBabel, then it will be used,
so the process shouldn’t make anything worse if possible ☺

FWIW, it’s mostly PHP code and, yes, everything is GPL and the
source is available, but it shouldn’t matter for the question
as it’s pretty general.


Thanks in advance,
//mirabilos
-- 
Besuchen Sie uns vom 09.06. bis zum 12.06. auf dem LinuxTag 2010
an unserem Stand „Fairtrade Software“ (Halle 7.2a. / Stand 123)!
Unsere Themen dieses Jahr:    • Evolvis • Freedroidz • Portale •
       • Identity and Access Management • Mobile Applikationen •

tarent Gesellschaft für Softwareentwicklung und IT-Beratung mbH
Geschäftsführer: Boris Esser, Elmar Geese
HRB AG Bonn 5168 - USt-ID (VAT): DE122264941

Heilsbachstraße 24, 53123 Bonn,   Telefon: +49 228 52675-93
Weigandufer 45,     12059 Berlin, Telefon: +49 30 5682943-30
Internet: http://www.tarent.de/ • Telefax: +49 228 52675-25



reply via email to

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