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>
Johannes Schindelin committed
Oct 30, 2007 at 11:24 UTC
9a25ae82dd635957e40e2d29ea5022d25fb6c2b0
1 file changed
+3
po/po2msg.sh
+3
@@ -62,6 +62,9 @@ proc flush_msg {} {
62
if {$msgid == ""} {
63
set prefix "set ::msgcat::header"
64
} else {
65
+ if {$msgstr == ""} {
66
+ return
67
+ }
68
set prefix "::msgcat::mcset $lang \"[u2a $msgid]\""
69
}
70