From bc47b51908e218a71a2c2078ff56375e4564c9dc Mon Sep 17 00:00:00 2001 From: Mateusz Starzycki Date: Mon, 13 Jun 2016 23:10:13 +0100 Subject: Add support for the new QT_TR*_N_NOOP() macro family Task-number: QTBUG-3945 Change-Id: Ia29d97adaaf47539a19bd544729663dc893c5c14 Reviewed-by: Oswald Buddenhagen --- .../lupdate/testdata/good/parsecpp/main.cpp | 17 +++++++++++++++ .../testdata/good/parsecpp/project.ts.result | 25 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) (limited to 'tests') diff --git a/tests/auto/linguist/lupdate/testdata/good/parsecpp/main.cpp b/tests/auto/linguist/lupdate/testdata/good/parsecpp/main.cpp index b6a002b2d..d93f1bb1f 100644 --- a/tests/auto/linguist/lupdate/testdata/good/parsecpp/main.cpp +++ b/tests/auto/linguist/lupdate/testdata/good/parsecpp/main.cpp @@ -671,3 +671,20 @@ class Class }; } + + + +// test of translation for _N_ family +static const char * const test_string_n1[] = { + QT_TRANSLATE_N_NOOP("scope", "string %n") +}; + +static const char * const test_string_n2[] = { + QT_TRANSLATE_N_NOOP3("scope", "string %n", "comment"); +}; +class testing { + Q_OBJECT + static const char * const test_string_n3[] = { + QT_TR_N_NOOP("%n test"); + }; +}; diff --git a/tests/auto/linguist/lupdate/testdata/good/parsecpp/project.ts.result b/tests/auto/linguist/lupdate/testdata/good/parsecpp/project.ts.result index e33c59bc6..7c500f6a3 100644 --- a/tests/auto/linguist/lupdate/testdata/good/parsecpp/project.ts.result +++ b/tests/auto/linguist/lupdate/testdata/good/parsecpp/project.ts.result @@ -633,5 +633,30 @@ backslashed \ stuff. string continuation on next line + + + string %n + + + + + + + string %n + comment + + + + + + + testing + + + %n test + + + + -- cgit v1.2.3