summaryrefslogtreecommitdiffstats
path: root/tools/linguist
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-08-30 13:28:11 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-08-30 13:43:42 (GMT)
commite32d8cd49c4e3137889512e3f3a19018b4195970 (patch)
tree2d02bbbb06dc87124187a8176743e8f3a4be0465 /tools/linguist
parent47fe98d194e48ec2bac1f75d8b5bd57820d7f66a (diff)
downloadQt-e32d8cd49c4e3137889512e3f3a19018b4195970.zip
Qt-e32d8cd49c4e3137889512e3f3a19018b4195970.tar.gz
Qt-e32d8cd49c4e3137889512e3f3a19018b4195970.tar.bz2
properly parse ts contexts in obsolete messages
Diffstat (limited to 'tools/linguist')
-rw-r--r--tools/linguist/shared/po.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/linguist/shared/po.cpp b/tools/linguist/shared/po.cpp
index 620d27b..a58a0bf 100644
--- a/tools/linguist/shared/po.cpp
+++ b/tools/linguist/shared/po.cpp
@@ -656,6 +656,8 @@ bool loadPO(Translator &translator, QIODevice &dev, ConversionData &cd)
item.isPlural = true;
} else if (line.startsWith("#~ msgctxt ")) {
item.tscomment = slurpEscapedString(lines, l, 11, "#~ ", cd);
+ if (qtContexts)
+ splitContext(&item.tscomment, &item.context);
} else {
cd.appendError(QString(QLatin1String("PO-format parse error in line %1: '%2'"))
.arg(l + 1).arg(codec->toUnicode(lines[l])));