summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-08-03 13:01:01 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-08-03 13:01:01 (GMT)
commite2f9be822a2c9d70324e64772a448a8d4cb2baf3 (patch)
tree2368a442b5851a2ab6caf92d73a68035c81d9b7c
parentc2f1012e54f43886d513346e0f6e4ba6dc87da45 (diff)
parentc8af8eaaf6e3a991d488cec56f7c901d88dfc098 (diff)
downloadQt-e2f9be822a2c9d70324e64772a448a8d4cb2baf3.zip
Qt-e2f9be822a2c9d70324e64772a448a8d4cb2baf3.tar.gz
Qt-e2f9be822a2c9d70324e64772a448a8d4cb2baf3.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-s60-public into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-s60-public: Ignore child elements in non-application caption/pkg name translations
-rw-r--r--qmake/generators/symbian/symbiancommon.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/qmake/generators/symbian/symbiancommon.cpp b/qmake/generators/symbian/symbiancommon.cpp
index 8f3bf64..8daef4b 100644
--- a/qmake/generators/symbian/symbiancommon.cpp
+++ b/qmake/generators/symbian/symbiancommon.cpp
@@ -993,7 +993,12 @@ bool SymbianCommonGenerator::parseTsContent(const QString &tsFilename, SymbianLo
if (xml.name() == sourceElement) {
source = xml.readElementText();
} else if (xml.name() == translationElement) {
- translation = xml.readElementText();
+ // Technically translation element can have child elements
+ // i.e. numerusform and lengthvariant. We don't support
+ // these for actual caption/pkgname translations, but since
+ // they may be present on other unrelated message elements,
+ // we need to explicitly skip them to avoid parsing errors.
+ translation = xml.readElementText(QXmlStreamReader::SkipChildElements);
} else {
xml.skipCurrentElement();
}