aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-10-30 11:24:53 +0000
committerShawn O. Pearce <spearce@spearce.org>2007-11-01 00:00:31 -0400
commit9a25ae82dd635957e40e2d29ea5022d25fb6c2b0 (patch)
treeae8c16a674da01c18a80988d508af7fbc81b362a
parentf94872dfc18c2670c9eb4ed8528ba45943213f39 (diff)
downloadgit-9a25ae82dd635957e40e2d29ea5022d25fb6c2b0.tar.gz
git-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 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]\""
}