diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-10-21 12:42:43 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-10-22 08:40:43 (GMT) |
commit | babfff66074573bb34a0abd561052c1cc4df5ef0 (patch) | |
tree | f282b3b04cc50ed74091029129d157b5640393d1 /tools | |
parent | e546f7b1bfe98436c26fb6aa11a88053ae4eb185 (diff) | |
download | Qt-babfff66074573bb34a0abd561052c1cc4df5ef0.zip Qt-babfff66074573bb34a0abd561052c1cc4df5ef0.tar.gz Qt-babfff66074573bb34a0abd561052c1cc4df5ef0.tar.bz2 |
id-based: use source strings instead of empty translations only for unfinished messages
Diffstat (limited to 'tools')
-rw-r--r-- | tools/linguist/shared/qm.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/linguist/shared/qm.cpp b/tools/linguist/shared/qm.cpp index fefe91c..998d0ac 100644 --- a/tools/linguist/shared/qm.cpp +++ b/tools/linguist/shared/qm.cpp @@ -440,9 +440,10 @@ void Releaser::insert(const TranslatorMessage &message, bool forceComment) void Releaser::insertIdBased(const TranslatorMessage &message) { QStringList tlns = message.translations(); - for (int i = 0; i < tlns.size(); ++i) - if (tlns.at(i).isEmpty()) - tlns[i] = message.sourceText(); + if (message.type() == TranslatorMessage::Unfinished) + for (int i = 0; i < tlns.size(); ++i) + if (tlns.at(i).isEmpty()) + tlns[i] = message.sourceText(); ByteTranslatorMessage bmsg("", originalBytes(message.id(), false), "", tlns); m_messages.insert(bmsg, 0); } |