summaryrefslogtreecommitdiffstats
path: root/tests/auto/linguist/lconvert/data
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/linguist/lconvert/data')
-rwxr-xr-xtests/auto/linguist/lconvert/data/makeplurals.pl29
-rw-r--r--tests/auto/linguist/lconvert/data/test-trans_seg.ts.out29
-rw-r--r--tests/auto/linguist/lconvert/data/test-trans_seg.xlf42
-rw-r--r--tests/auto/linguist/lconvert/data/untranslated.qmbin0 -> 222 bytes
4 files changed, 73 insertions, 27 deletions
diff --git a/tests/auto/linguist/lconvert/data/makeplurals.pl b/tests/auto/linguist/lconvert/data/makeplurals.pl
index ced1429b9..b6c5894b6 100755
--- a/tests/auto/linguist/lconvert/data/makeplurals.pl
+++ b/tests/auto/linguist/lconvert/data/makeplurals.pl
@@ -1,31 +1,6 @@
#!/usr/bin/env perl
-#############################################################################
-##
-## Copyright (C) 2016 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of the test suite of the Qt Toolkit.
-##
-## $QT_BEGIN_LICENSE:GPL-EXCEPT$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## GNU General Public License Usage
-## Alternatively, this file may be used under the terms of the GNU
-## General Public License version 3 as published by the Free Software
-## Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-## included in the packaging of this file. Please review the following
-## information to ensure the GNU General Public License requirements will
-## be met: https://www.gnu.org/licenses/gpl-3.0.html.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
+# Copyright (C) 2016 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
sub makeit2($$$)
{
diff --git a/tests/auto/linguist/lconvert/data/test-trans_seg.ts.out b/tests/auto/linguist/lconvert/data/test-trans_seg.ts.out
new file mode 100644
index 000000000..962dd6534
--- /dev/null
+++ b/tests/auto/linguist/lconvert/data/test-trans_seg.ts.out
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="de">
+<context>
+ <name></name>
+ <message id="hello_world">
+ <source>Hello world!</source>
+ <translation type="unfinished">Hallo Welt!</translation>
+ </message>
+ <message>
+ <location filename="self" line="137"/>
+ <source>A standout centrepiece for any occasion. Use the temperature sensor for best results.
+
+Serve with roast tomatoes and hasselback potatoes.</source>
+ <translation type="unfinished">Un centro de mesa destacado para cualquier ocasión.Utilice el sensor de temperatura para obtener mejores resultados.
+
+Acompañe con tomates asados y papas horneadas tipo hassleback.</translation>
+ </message>
+ <message>
+ <location filename="self" line="137"/>
+ <source>Two pieces</source>
+ <translation type="unfinished">Zwei Stueck</translation>
+ </message>
+ <message id="test">
+ <source>Hello!</source>
+ <translation type="unfinished">Hallo!</translation>
+ </message>
+</context>
+</TS>
diff --git a/tests/auto/linguist/lconvert/data/test-trans_seg.xlf b/tests/auto/linguist/lconvert/data/test-trans_seg.xlf
new file mode 100644
index 000000000..4cff2bc56
--- /dev/null
+++ b/tests/auto/linguist/lconvert/data/test-trans_seg.xlf
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xliff
+ xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
+ <file datatype="plaintext" original="self" source-language="en" target-language="de">
+ <body>
+ <trans-unit id="hello_world"
+ xmlns:sap="urn:x-sap:sls-mlt">
+ <source>Hello world!</source>
+ <target>Hallo Welt!</target>
+ </trans-unit>
+ <trans-unit id="_msg2394">
+ <source xml:space="preserve">A standout centrepiece for any occasion. Use the temperature sensor for best results.
+
+Serve with roast tomatoes and hasselback potatoes.</source>
+ <seg-source><mrk mtype="seg" mid="605">A standout centrepiece for any occasion.</mrk><mrk mtype="seg" mid="606">Use the temperature sensor for best results.</mrk>
+
+ <mrk mtype="seg" mid="607">Serve with roast tomatoes and hasselback potatoes.</mrk></seg-source>
+ <target state="signed-off" xml:space="preserve"><mrk mtype="seg" mid="605">Un centro de mesa destacado para cualquier ocasión.</mrk><mrk mtype="seg" mid="606">Utilice el sensor de temperatura para obtener mejores resultados.</mrk>
+
+<mrk mtype="seg" mid="607">Acompañe con tomates asados y papas horneadas tipo hassleback.</mrk></target>
+ <context-group purpose="location">
+ <context context-type="linenumber">137</context>
+ </context-group>
+ </trans-unit>
+ <trans-unit id="_msg2395">
+ <source xml:space="preserve">Two pieces</source>
+ <seg-source>
+ <mrk mtype="seg" mid="1">Two</mrk> <mrk mtype="seg" mid="2">pieces</mrk>
+ </seg-source>
+ <target state="signed-off" xml:space="preserve"><mrk mtype="seg" mid="1">Zwei</mrk> <mrk mtype="seg" mid="2">Stueck</mrk></target>
+ <context-group purpose="location">
+ <context context-type="linenumber">137</context>
+ </context-group>
+ </trans-unit>
+ <trans-unit id="test"
+ xmlns:sap="urn:x-sap:sls-mlt">
+ <source>Hello!</source>
+ <target>Hallo!</target>
+ </trans-unit>
+ </body>
+ </file>
+</xliff>
diff --git a/tests/auto/linguist/lconvert/data/untranslated.qm b/tests/auto/linguist/lconvert/data/untranslated.qm
new file mode 100644
index 000000000..e31d2553a
--- /dev/null
+++ b/tests/auto/linguist/lconvert/data/untranslated.qm
Binary files differ