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

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

Recursive descent Enhancement to msgmerge in gettext-0.14.2


From: Steve Murphy
Subject: Recursive descent Enhancement to msgmerge in gettext-0.14.2
Date: Sat, 26 Mar 2005 22:39:47 -0700

Hello--

Sorry to bore you with yet another update to gettext-0.14.2.

I've attached a patch that does everything advertised in previous
emails, and added one more "thing"-- and that is, that msgmerge will
take directories instead of file names as the po and pot file arguments.
They both have to be directories, and you have to specify --update, and
you can't specify --output-file.

The structure of the directories has to be the same. The files in the po
dir have to end with .po, and the files in the pot dir have to end
with .pot. It traverses the po dir, and if a corresponding file with the
same relative path exists in the pot dirset, then the pairs are merged.

Why add this capability? On my machine, with my compendium, msgmerge
took 15 seconds to read in the compendium. I have thousands of files to
process. That 15 seconds times all those files equals a lot of CPU
cycles to do the same thing, over and over. This optimization allows a
single compendium set load to be applied to hundreds, if not thousands
of merges.  And saves you having to type a lot of script code when you
want to run msgmerge on a large set of hierarchically placed files.

So, there you have it. Docs updated, NEWS, and ChangleLog files updated
also. FEEDBACK WELCOME, but based on the overwhelming response so far
(none!), I will not hold my breath!

Oh, yes, this patch fixes a bug I found dealing with null sentences,
also.

murf


Attachment: gettext-0.14.2-fuzzyupgrade.patch3.gz
Description: GNU Zip compressed data

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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