diff options
author | Jason Barron <jbarron@trolltech.com> | 2009-07-09 11:03:54 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-07-09 11:03:54 (GMT) |
commit | 8bc84e2180e1d5819b372f4cd8c236b853145803 (patch) | |
tree | 6c5e6a8b6a1750e2484fd34f48be662fcf51959f /tests/auto/linguist/lrelease/testdata | |
parent | d641198fa71fadd243e84dfdf02b9a0536a27b3f (diff) | |
parent | 3b1e30bb1d6651a626aba1f6b8883f5524598ed3 (diff) | |
download | Qt-8bc84e2180e1d5819b372f4cd8c236b853145803.zip Qt-8bc84e2180e1d5819b372f4cd8c236b853145803.tar.gz Qt-8bc84e2180e1d5819b372f4cd8c236b853145803.tar.bz2 |
Merge commit 'origin/master' into 4.6-merged
Conflicts:
src/corelib/kernel/qcoreevent.cpp
src/corelib/tools/qdumper.cpp
src/gui/kernel/qwidget.cpp
src/gui/kernel/qwidget_p.h
src/gui/kernel/qwidget_s60.cpp
src/gui/text/qfontdatabase.cpp
src/network/access/qnetworkreplyimpl.cpp
src/sql/drivers/ibase/qsql_ibase.cpp
src/testlib/qtestcase.cpp
src/testlib/testlib.pro
tests/auto/network-settings.h
tests/auto/q3sqlcursor/tst_q3sqlcursor.cpp
tests/auto/qobjectrace/tst_qobjectrace.cpp
tests/auto/qsqldatabase/tst_qsqldatabase.cpp
tools/configure/configureapp.cpp
translations/qt_ru.ts
Diffstat (limited to 'tests/auto/linguist/lrelease/testdata')
6 files changed, 247 insertions, 0 deletions
diff --git a/tests/auto/linguist/lrelease/testdata/compressed.ts b/tests/auto/linguist/lrelease/testdata/compressed.ts new file mode 100644 index 0000000..9579269 --- /dev/null +++ b/tests/auto/linguist/lrelease/testdata/compressed.ts @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>Context1</name> + <message> + <source>Foo</source> + <translation>in first context</translation> + </message> +</context> +<context> + <name>Context2</name> + <message> + <source>Bar</source> + <translation>in second context</translation> + </message> +</context> +<context> + <name>Action1</name> + <message> + <location filename="main.cpp" line="14"/> + <source>Component Name</source> + <translation>translation in first context</translation> + </message> + <message> + <source>Fooish bar</source> + <translation>the bar is fooish</translation> + </message> +</context> +<context> + <name>Action2</name> + <message> + <location filename="main.cpp" line="20"/> + <source>Component Name</source> + <translation>translation in second context</translation> + </message> +</context> +<context> + <name>Action3</name> + <message> + <location filename="main.cpp" line="26"/> + <source>Component Name</source> + <translation>translation in third context</translation> + </message> +</context> +</TS> diff --git a/tests/auto/linguist/lrelease/testdata/dupes.errors b/tests/auto/linguist/lrelease/testdata/dupes.errors new file mode 100644 index 0000000..74fcbbb --- /dev/null +++ b/tests/auto/linguist/lrelease/testdata/dupes.errors @@ -0,0 +1,4 @@ +Warning: dropping duplicate messages in 'testdata/dupes\.qm': + +\* Context: FindDialog +\* Source: Text not found diff --git a/tests/auto/linguist/lrelease/testdata/dupes.ts b/tests/auto/linguist/lrelease/testdata/dupes.ts new file mode 100644 index 0000000..ec368c3 --- /dev/null +++ b/tests/auto/linguist/lrelease/testdata/dupes.ts @@ -0,0 +1,25 @@ +<?xml version="1.0"?> +<!DOCTYPE TS> +<TS version="1.1"> +<context> + <name>FindDialog</name> + <message utf8="true"> + <source>Search reached start of the document</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="finddialog.cpp" line="109"/> + <source>Search reached start of the document</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="finddialog.cpp" line="111"/> + <source>Text not found</source> + <translation type="unfinished"></translation> + </message> + <message> + <source>Text not found</source> + <translation type="obsolete"></translation> + </message> +</context> +</TS> diff --git a/tests/auto/linguist/lrelease/testdata/mixedcodecs-ts11.ts b/tests/auto/linguist/lrelease/testdata/mixedcodecs-ts11.ts new file mode 100644 index 0000000..991f354 --- /dev/null +++ b/tests/auto/linguist/lrelease/testdata/mixedcodecs-ts11.ts @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="1.1"> +<defaultcodec>windows-1252</defaultcodec> +<context> + <name>FooBar</name> + <message> + <location filename="main.cpp" line="11"/> + <source>this contains an umlaut ü &uuml;</source> + <translation>random stuff with umlaut</translation> + </message> + <message encoding="UTF-8"> + <location filename="main.cpp" line="13"/> + <source>umlaut ü &uuml; in utf8</source> + <translation>more random stuff with umlaut</translation> + </message> +</context> +</TS> diff --git a/tests/auto/linguist/lrelease/testdata/mixedcodecs-ts20.ts b/tests/auto/linguist/lrelease/testdata/mixedcodecs-ts20.ts new file mode 100644 index 0000000..8bb56d4 --- /dev/null +++ b/tests/auto/linguist/lrelease/testdata/mixedcodecs-ts20.ts @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<defaultcodec>windows-1252</defaultcodec> +<context> + <name>FooBar</name> + <message> + <location filename="main.cpp" line="11"/> + <source>this contains an umlaut ü &uuml;</source> + <translation>random stuff with umlaut</translation> + </message> + <message utf8="true"> + <location filename="main.cpp" line="13"/> + <source>umlaut ü &uuml; in utf8</source> + <translation>more random stuff with umlaut</translation> + </message> +</context> +</TS> diff --git a/tests/auto/linguist/lrelease/testdata/translate.ts b/tests/auto/linguist/lrelease/testdata/translate.ts new file mode 100644 index 0000000..ad3015d --- /dev/null +++ b/tests/auto/linguist/lrelease/testdata/translate.ts @@ -0,0 +1,136 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="1.1" language="en"> +<context> + <name></name> + <message> + <location filename="tst_lrelease.cpp" line="32"/> + <source>Test</source> + <translation>AAAA</translation> + <comment>Empty context</comment> + </message> +</context> +<context> + <name>CubeForm</name> + <message> + <location filename="tst_lrelease.cpp" line="31"/> + <source>Test</source> + <translation>BBBB</translation> + </message> +</context> +<context> + <name>QObject</name> + <message> + <location filename="tst_lrelease.cpp" line="22"/> + <source> +newline at the start</source> + <translation> +NEWLINE AT THE START</translation> + </message> + <message> + <location filename="tst_lrelease.cpp" line="23"/> + <source>newline at the end +</source> + <translation>NEWLINE AT THE END +</translation> + </message> + <message> + <location filename="tst_lrelease.cpp" line="24"/> + <source>newline and space at the end + </source> + <translation>NEWLINE AND SPACE AT THE END + </translation> + </message> + <message> + <location filename="tst_lrelease.cpp" line="25"/> + <source>space and newline at the end +</source> + <translation>SPACE AND NEWLINE AT THE END +</translation> + </message> + <message> + <location filename="tst_lrelease.cpp" line="26"/> + <source><byte value="x9"/>tab at the start and newline at the end +</source> + <translation><byte value="x9"/>TAB AT THE START AND NEWLINE AT THE END +</translation> + </message> + <message> + <location filename="tst_lrelease.cpp" line="27"/> + <source> +<byte value="x9"/>newline and tab at the start</source> + <translation> +<byte value="x9"/>NEWLINE AND TAB AT THE START</translation> + </message> + <message> + <location filename="tst_lrelease.cpp" line="28"/> + <source> <byte value="x9"/>space and tab at the start</source> + <translation> <byte value="x9"/>SPACE AND TAB AT THE START</translation> + </message> + <message> + <location filename="tst_lrelease.cpp" line="29"/> + <source> space first</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="tst_lrelease.cpp" line="29"/> + <source> string that does not exist</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>Plurals</name> + <message numerus="yes"> + <location filename="tst_lrelease.cpp" line="35"/> + <source>There are %n houses</source> + <translation> + <numerusform>There is %n house</numerusform> + <numerusform>There are %n houses</numerusform> + </translation> + </message> +</context> +<context> + <name>tst_lrelease</name> + <message numerus="yes"> + <location filename="tst_lrelease.cpp" line="43"/> + <source>There are %n cars</source> + <comment>More Plurals</comment> + <translation> + <numerusform>There is %n car</numerusform> + <numerusform>There are %n cars</numerusform> + </translation> + </message> + <message> + <source>Completely random string</source> + <translation variants="yes"> + <lengthvariant>Super-lange Uebersetzung mit Schikanen</lengthvariant> + <lengthvariant>Mittlere Uebersetung</lengthvariant> + <lengthvariant>Kurze Uebers.</lengthvariant> + </translation> + </message> +</context> +<context> + <name>no_en</name> + <message> + <location filename="tst_lrelease.cpp" line="49"/> + <source>Kjør Kåre, kjære</source> + <translation>Drive Kåre, dear</translation> + </message> +</context> +<context> + <name>en_no</name> + <message> + <location filename="tst_lrelease.cpp" line="50"/> + <source>Drive Kåre, dear</source> + <translation>Kjør Kåre, kjære</translation> + </message> +</context> +<context> + <name>en_ch</name> + <message> + <location filename="tst_lrelease.cpp" line="51"/> + <source>Chinese symbol:</source> + <translation>Chinese symbol:簟</translation> + </message> +</context> +</TS> |