diff options
Diffstat (limited to 'tests')
4 files changed, 19 insertions, 3 deletions
diff --git a/tests/auto/linguist/lupdate/testdata/good/heuristics/expectedoutput.txt b/tests/auto/linguist/lupdate/testdata/good/heuristics/expectedoutput.txt index 1eed403b7..e363cc8cb 100644 --- a/tests/auto/linguist/lupdate/testdata/good/heuristics/expectedoutput.txt +++ b/tests/auto/linguist/lupdate/testdata/good/heuristics/expectedoutput.txt @@ -1,5 +1,5 @@ Updating 'project\.ts'\.\.\. - Found 3 source text\(s\) \(3 new and 0 already existing\) - Removed 5 obsolete entries - Number heuristic provided 1 translation\(s\) + Found 4 source text\(s\) \(4 new and 0 already existing\) + Removed 6 obsolete entries + Number heuristic provided 2 translation\(s\) Same-text heuristic provided 1 translation\(s\) diff --git a/tests/auto/linguist/lupdate/testdata/good/heuristics/main.cpp b/tests/auto/linguist/lupdate/testdata/good/heuristics/main.cpp index 41cedf52a..0915b556c 100644 --- a/tests/auto/linguist/lupdate/testdata/good/heuristics/main.cpp +++ b/tests/auto/linguist/lupdate/testdata/good/heuristics/main.cpp @@ -44,6 +44,9 @@ class A: public QObject { // failed same text tr("this is the non-matched same text"); + + // number heuristics QTBUG-111775 + tr("1xb"); } }; diff --git a/tests/auto/linguist/lupdate/testdata/good/heuristics/project.ts.before b/tests/auto/linguist/lupdate/testdata/good/heuristics/project.ts.before index e72debed9..ca731d961 100644 --- a/tests/auto/linguist/lupdate/testdata/good/heuristics/project.ts.before +++ b/tests/auto/linguist/lupdate/testdata/good/heuristics/project.ts.before @@ -35,4 +35,12 @@ <translation>völlig andere variante des reinfalls mit same-text</translation> </message> </context> +<context> + <name>D</name> + <message> + <location filename="main.cpp" line="62"/> + <source>1ab</source> + <translation>1ab</translation> + </message> +</context> </TS> diff --git a/tests/auto/linguist/lupdate/testdata/good/heuristics/project.ts.result b/tests/auto/linguist/lupdate/testdata/good/heuristics/project.ts.result index 351bdff7d..546d1f1f4 100644 --- a/tests/auto/linguist/lupdate/testdata/good/heuristics/project.ts.result +++ b/tests/auto/linguist/lupdate/testdata/good/heuristics/project.ts.result @@ -18,5 +18,10 @@ <source>this is the non-matched same text</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="main.cpp" line="49"/> + <source>1xb</source> + <translation type="unfinished">1ab {1x?}</translation> + </message> </context> </TS> |