summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <Johannes.Schindelin@gmx.de>2007-10-30 11:24:53 +0000
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-11-01 00:00:31 -0400
commit9a25ae82dd635957e40e2d29ea5022d25fb6c2b0 (patch)
treeae8c16a674da01c18a80988d508af7fbc81b362a
parentpo2msg: ignore entries marked with "fuzzy" (diff)
downloadtgif-9a25ae82dd635957e40e2d29ea5022d25fb6c2b0.tar.xz
po2msg: ignore untranslated messages
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>
-rw-r--r--po/po2msg.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/po/po2msg.sh b/po/po2msg.sh
index 48a2669967..91d420b4fb 100644
--- a/po/po2msg.sh
+++ b/po/po2msg.sh
@@ -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]\""
}