diff options
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/linguist/lupdate/testdata/good/multiple_locations/main.cpp | 17 | ||||
-rw-r--r-- | tests/auto/linguist/lupdate/testdata/good/multiple_locations/project.ts.result | 23 |
2 files changed, 40 insertions, 0 deletions
diff --git a/tests/auto/linguist/lupdate/testdata/good/multiple_locations/main.cpp b/tests/auto/linguist/lupdate/testdata/good/multiple_locations/main.cpp index d06e8b2ca..fa01f9d16 100644 --- a/tests/auto/linguist/lupdate/testdata/good/multiple_locations/main.cpp +++ b/tests/auto/linguist/lupdate/testdata/good/multiple_locations/main.cpp @@ -47,7 +47,24 @@ QT_TRANSLATE_NOOP("context", "just a message"); +//: commented +qtTrId("lollipop"); +//% "this is the source text" +//~ meta so-meta +//: even more commented +qtTrId("lollipop"); +//% "this is contradicting source text" +qtTrId("lollipop"); +//~ meta too-much-meta +qtTrId("lollipop"); + + +//~ meta so-meta +QObject::tr("another message", "here with a lot of noise in the comment so it is long enough"); + +//~ meta too-much-meta +QObject::tr("another message", "here with a lot of noise in the comment so it is long enough"); diff --git a/tests/auto/linguist/lupdate/testdata/good/multiple_locations/project.ts.result b/tests/auto/linguist/lupdate/testdata/good/multiple_locations/project.ts.result index a7ae15520..b0a171757 100644 --- a/tests/auto/linguist/lupdate/testdata/good/multiple_locations/project.ts.result +++ b/tests/auto/linguist/lupdate/testdata/good/multiple_locations/project.ts.result @@ -2,6 +2,29 @@ <!DOCTYPE TS> <TS version="2.0"> <context> + <name></name> + <message id="lollipop"> + <location filename="main.cpp" line="51"/> + <location filename="main.cpp" line="56"/> + <source>this is the source text</source> + <extracomment>commented +---------- +even more commented</extracomment> + <translation type="unfinished"></translation> + <extra-meta>so-meta</extra-meta> + </message> +</context> +<context> + <name>QObject</name> + <message> + <location filename="main.cpp" line="67"/> + <source>another message</source> + <comment>here with a lot of noise in the comment so it is long enough</comment> + <translation type="unfinished"></translation> + <extra-meta>so-meta</extra-meta> + </message> +</context> +<context> <name>context</name> <message> <location filename="finddialog.cpp" line="42"/> |