summaryrefslogtreecommitdiffstats
path: root/tools/linguist
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-03-25 20:04:48 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-03-27 11:08:33 (GMT)
commit39c52d840cd1ba3bf988937f4f9c9a9cdba57bfc (patch)
treef0975549174f18dfda0e08bc8e0fa4c95a152e05 /tools/linguist
parent811eb47c3501479033ac3a484beeb896b6c0753f (diff)
downloadQt-39c52d840cd1ba3bf988937f4f9c9a9cdba57bfc.zip
Qt-39c52d840cd1ba3bf988937f4f9c9a9cdba57bfc.tar.gz
Qt-39c52d840cd1ba3bf988937f4f9c9a9cdba57bfc.tar.bz2
actually ignore untranslated messages as it claims
Diffstat (limited to 'tools/linguist')
-rw-r--r--tools/linguist/shared/qm.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/linguist/shared/qm.cpp b/tools/linguist/shared/qm.cpp
index c197e2b..1534e3f 100644
--- a/tools/linguist/shared/qm.cpp
+++ b/tools/linguist/shared/qm.cpp
@@ -646,10 +646,12 @@ static bool saveQM(const Translator &translator, QIODevice &dev, ConversionData
TranslatorMessage::Type typ = msg.type();
if (typ != TranslatorMessage::Obsolete) {
if (typ == TranslatorMessage::Unfinished) {
- if (msg.translation().isEmpty())
+ if (msg.translation().isEmpty()) {
++untranslated;
- else
+ continue;
+ } else {
++unfinished;
+ }
} else {
++finished;
}