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>
This commit is contained in:
parent
f94872dfc1
commit
9a25ae82dd
@ -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]\""
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user