Skip to content

Commit 9a25ae8

Browse files
dschospearce
authored andcommitted
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>
1 parent f94872d commit 9a25ae8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

po/po2msg.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ proc flush_msg {} {
6262
if {$msgid == ""} {
6363
set prefix "set ::msgcat::header"
6464
} else {
65+
if {$msgstr == ""} {
66+
return
67+
}
6568
set prefix "::msgcat::mcset $lang \"[u2a $msgid]\""
6669
}
6770

0 commit comments

Comments
 (0)