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

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

Gettext 0.10.39 feature request (patch included)


From: Jan D.
Subject: Gettext 0.10.39 feature request (patch included)
Date: Mon, 13 Aug 2001 20:47:05 +0200 (CEST)

Hello.

This may not be bug, it depends on your point of view.

I found the -C (compendium) in msgmerge, and gave it a try.  After all,
when translating there is a lot of similar messages.  My hope was to
take an untranslated .po-file, add a bunch of -C and presto, I would
get the known messages that existed in the -C files merged into the
.po-file in question.

Alas, it didn't work that way, all I got was empty messages.  Msgmerge
found the empty strings in the .po-file and used that, ignoring
the -C files.

I therefore suggest that msgmerge should continue searching in the -C files
for translations if the one it has found is an empty string.

The enclosed patch seems to do just this, but it may have some
side effect I haven't noticed (I'm not very good in msgmerge internals).

Regards,

        Jan D.

Index: src/message.c
--- src/message.c.orig  Tue Mar  6 15:54:15 2001
+++ src/message.c       Sun Aug 12 15:27:45 2001
@@ -672,7 +672,7 @@
 
       mlp = mllp->item[j];
       mp = message_list_search (mlp, msgid);
-      if (mp)
+      if (mp && strlen(mp->variant->msgstr) > 0)
         return mp;
     }
   return 0;



reply via email to

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