po2msg: ignore untranslated messages
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 30 Oct 2007 11:24:53 +0000 (11:24 +0000)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 1 Nov 2007 04:00:31 +0000 (00:00 -0400)
Do not generate translations when the translated message is empty.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
po/po2msg.sh

index 48a2669967c77980f7953c886203e5deee96289b..91d420b4fbda333856dba25e8b112d37e4a0eb0c 100644 (file)
@@ -62,6 +62,9 @@ proc flush_msg {} {
        if {$msgid == ""} {
                set prefix "set ::msgcat::header"
        } else {
+               if {$msgstr == ""} {
+                       return
+               }
                set prefix "::msgcat::mcset $lang \"[u2a $msgid]\""
        }