Skip to content

Commit

Permalink
po2msg: ignore untranslated messages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Schindelin authored and Shawn O. Pearce committed Nov 1, 2007
1 parent f94872d commit 9a25ae8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions po/po2msg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]\""
}

Expand Down

0 comments on commit 9a25ae8

Please sign in to comment.