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:
Johannes Schindelin 2007-10-30 11:24:53 +00:00 committed by Shawn O. Pearce
parent f94872dfc1
commit 9a25ae82dd

View File

@ -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]\""
}