summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-11-25 15:58:50 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-11-25 15:58:50 (GMT)
commit5a180a11af102268d66f3822be256a1dc6980da4 (patch)
tree0617c1091480f242304cb252231f2cdc81f34fe1 /tools
parentc361eb5bfc7613b9b584d1b58d5d372000f2a47d (diff)
downloadQt-5a180a11af102268d66f3822be256a1dc6980da4.zip
Qt-5a180a11af102268d66f3822be256a1dc6980da4.tar.gz
Qt-5a180a11af102268d66f3822be256a1dc6980da4.tar.bz2
qph: don't clobber <definition> fields
the translator comment field is not written out, so reading the definition into it is basically discarding it as far as any roundtrips which arrive at qph again are concerned. the message's disambiguation seems most suitable for the task. Reviewed-by: hjk Task-number: QTBUG-4498
Diffstat (limited to 'tools')
-rw-r--r--tools/linguist/shared/qph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/linguist/shared/qph.cpp b/tools/linguist/shared/qph.cpp
index 788245c..a364037 100644
--- a/tools/linguist/shared/qph.cpp
+++ b/tools/linguist/shared/qph.cpp
@@ -104,7 +104,7 @@ bool QPHReader::read(Translator &translator)
TranslatorMessage msg;
msg.setSourceText(m_currentSource);
msg.setTranslation(m_currentTarget);
- msg.setTranslatorComment(m_currentDefinition);
+ msg.setComment(m_currentDefinition);
translator.append(msg);
m_currentSource.clear();
m_currentTarget.clear();