diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-10-30 11:24:53 +0000 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-11-01 00:00:31 -0400 |
commit | 9a25ae82dd635957e40e2d29ea5022d25fb6c2b0 (patch) | |
tree | ae8c16a674da01c18a80988d508af7fbc81b362a | |
parent | po2msg: ignore entries marked with "fuzzy" (diff) | |
download | tgif-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.sh | 3 |
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]\"" } |