From: Johannes Schindelin Date: Tue, 30 Oct 2007 11:24:53 +0000 (+0000) Subject: po2msg: ignore untranslated messages X-Git-Tag: gitgui-0.9.0~7 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9a25ae82dd635957e40e2d29ea5022d25fb6c2b0;p=git.git po2msg: ignore untranslated messages Do not generate translations when the translated message is empty. Signed-off-by: Johannes Schindelin Signed-off-by: Shawn O. Pearce --- diff --git a/po/po2msg.sh b/po/po2msg.sh index 48a266996..91d420b4f 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]\"" }