From 9a25ae82dd635957e40e2d29ea5022d25fb6c2b0 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 30 Oct 2007 11:24:53 +0000 Subject: [PATCH] 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 --- po/po2msg.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/po/po2msg.sh b/po/po2msg.sh index 48a2669..91d420b 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]\"" } -- 2.11.4.GIT