summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-02 13:39:40 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-02 13:46:34 (GMT)
commita1c8fc04c17cfbf0060c81d442ffa2440a796112 (patch)
tree48cadc9599b325589541ea29229c52ce536edb47 /tests/auto
parentfbce5c6d20571717d67c2b8934f047af035e5b06 (diff)
downloadQt-a1c8fc04c17cfbf0060c81d442ffa2440a796112.zip
Qt-a1c8fc04c17cfbf0060c81d442ffa2440a796112.tar.gz
Qt-a1c8fc04c17cfbf0060c81d442ffa2440a796112.tar.bz2
write PO files without duplicated message ids
encoding the qt context as a magic comment was no particularly good idea, as it provided no disambiguation as far as gettext is concerned. so instead encode the context into msgctxt. Task-number: QTBUG-10307
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/linguist/lconvert/data/test20.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/linguist/lconvert/data/test20.ts b/tests/auto/linguist/lconvert/data/test20.ts
index 542cdee..f042edf 100644
--- a/tests/auto/linguist/lconvert/data/test20.ts
+++ b/tests/auto/linguist/lconvert/data/test20.ts
@@ -147,4 +147,16 @@
<translation type="unfinished"></translation>
</message>
</context>
+<context>
+ <name>Bizarre ~ and | context~</name>
+ <message>
+ <source>just something</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>something else</source>
+ <comment>comment with | and ~ and so~</comment>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
</TS>