diff options
author | Lucie Gerard <lucie.gerard@qt.io> | 2019-04-01 14:23:14 +0200 |
---|---|---|
committer | Lucie Gerard <lucie.gerard@qt.io> | 2019-04-02 07:35:15 +0000 |
commit | 9364c3fcc8c98f70aceaac5b72823e290504cb2a (patch) | |
tree | c30e55902353e45045817b9bc1b2ab56e1b0e7ad /tests/auto/linguist/lupdate/testdata/good/notargetlanguage/project.ts.before | |
parent | d9aebed5c8520911f290da0d66b6cb849ccb9657 (diff) |
lupdate: Do not touch a translated file without target language
[ChangeLog][lupdate] lupdate will now generate an error if it is asked
to update a .ts file with translations, but without a target language.
This is to ensure that plural translations are not destroyed.
Fixes: QTBUG-53775
Change-Id: I646c1f2ec42a32dbc1a4676ad784887613607b78
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'tests/auto/linguist/lupdate/testdata/good/notargetlanguage/project.ts.before')
-rw-r--r-- | tests/auto/linguist/lupdate/testdata/good/notargetlanguage/project.ts.before | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/linguist/lupdate/testdata/good/notargetlanguage/project.ts.before b/tests/auto/linguist/lupdate/testdata/good/notargetlanguage/project.ts.before new file mode 100644 index 000000000..7216e069c --- /dev/null +++ b/tests/auto/linguist/lupdate/testdata/good/notargetlanguage/project.ts.before @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.1"> +<context> + <name>QObject</name> + <message numerus="yes"> + <location filename="main.cpp" line="39"/> + <source>un mot</source> + <comment>toto</comment> + <translation type="unfinished"> + <numerusform>ein Wort</numerusform> + </translation> + </message> +</context> +</TS> |