1. Stefan Saasen
  2. git

Commits

Johannes Schindelin  committed 9a25ae8

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>

  • Participants
  • Parent commits f94872d
  • Branches master

Comments (0)

Files changed (1)

File po/po2msg.sh

View file
  • Ignore whitespace
 	if {$msgid == ""} {
 		set prefix "set ::msgcat::header"
 	} else {
+		if {$msgstr == ""} {
+			return
+		}
 		set prefix "::msgcat::mcset $lang \"[u2a $msgid]\""
 	}