summaryrefslogtreecommitdiff
path: root/po/po2msg.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-10-30 11:24:53 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-11-01 04:00:31 (GMT)
commit9a25ae82dd635957e40e2d29ea5022d25fb6c2b0 (patch)
treeae8c16a674da01c18a80988d508af7fbc81b362a /po/po2msg.sh
parentf94872dfc18c2670c9eb4ed8528ba45943213f39 (diff)
downloadgit-9a25ae82dd635957e40e2d29ea5022d25fb6c2b0.zip
git-9a25ae82dd635957e40e2d29ea5022d25fb6c2b0.tar.gz
git-9a25ae82dd635957e40e2d29ea5022d25fb6c2b0.tar.bz2
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>
Diffstat (limited to 'po/po2msg.sh')
-rw-r--r--po/po2msg.sh3
1 files changed, 3 insertions, 0 deletions
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]\""
}