summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-08-06 13:11:37 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-05 19:25:32 (GMT)
commit31c6cbbe529c6fdbaf259f7ed87547db6dda7842 (patch)
tree04e4486846d6f9567b98d57cde9b082a39ba9857 /tools
parentcfdeca8452f183afd647313ad90368d6c0b24581 (diff)
downloadQt-31c6cbbe529c6fdbaf259f7ed87547db6dda7842.zip
Qt-31c6cbbe529c6fdbaf259f7ed87547db6dda7842.tar.gz
Qt-31c6cbbe529c6fdbaf259f7ed87547db6dda7842.tar.bz2
fix strings from #included sources not being collected
Task-number: QTBUG-27974 Change-Id: I30edae2db5449605984a118458b1ccce7ad67eb1 Reviewed-by: hjk <hjk121@nokiamail.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> (cherry picked from qttools/bcaa8575352ad16e1f6020436e1a3f450eefd53e)
Diffstat (limited to 'tools')
-rw-r--r--tools/linguist/lupdate/cpp.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/linguist/lupdate/cpp.cpp b/tools/linguist/lupdate/cpp.cpp
index 4de27ea..20f651e 100644
--- a/tools/linguist/lupdate/cpp.cpp
+++ b/tools/linguist/lupdate/cpp.cpp
@@ -1411,6 +1411,7 @@ void CppParser::processInclude(const QString &file, ConversionData &cd, const QS
parser.functionContextUnresolved = functionContextUnresolved;
parser.pendingContext = pendingContext;
parser.setInput(ts, cleanFile);
+ parser.setTranslator(tor);
QStringList stack = includeStack;
stack << cleanFile;
parser.parseInternal(cd, stack, inclusions);