summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-08-30 15:13:46 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-08-30 15:20:14 (GMT)
commitd1a588512cec7d5fea8ee53b9c0f102d27d1e687 (patch)
tree624ba87e14af1bc4e8c592b098a9891cd9a77ccf /tests
parentd686a95ed54b19336affc14c9222de54c9af0e72 (diff)
downloadQt-d1a588512cec7d5fea8ee53b9c0f102d27d1e687.zip
Qt-d1a588512cec7d5fea8ee53b9c0f102d27d1e687.tar.gz
Qt-d1a588512cec7d5fea8ee53b9c0f102d27d1e687.tar.bz2
preserve non-standard source references
the PO format doc suggests that all references are in filename:linennumber format, but some tools seem to deviate from that. so do our best to preserve such references, even if we can't do anything with them. Task-number: QTBUG-9488
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/linguist/lconvert/data/test-refs.po23
-rw-r--r--tests/auto/linguist/lconvert/tst_lconvert.cpp2
2 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/linguist/lconvert/data/test-refs.po b/tests/auto/linguist/lconvert/data/test-refs.po
new file mode 100644
index 0000000..e149a38
--- /dev/null
+++ b/tests/auto/linguist/lconvert/data/test-refs.po
@@ -0,0 +1,23 @@
+msgid ""
+msgstr ""
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Language: de_DE\n"
+
+#: themer/kdmlabel.cpp:285
+#, no-c-format
+msgctxt "date format"
+msgid "%a %d %B"
+msgstr "%a %d %B"
+
+#: foo.bar.baz
+#, no-c-format
+msgid "full java class name"
+msgstr ""
+
+#: foo.car:123 monks:here file/gar.c:17:19 no:monks:here
+#, no-c-format
+msgid "some excessive locations"
+msgstr ""
diff --git a/tests/auto/linguist/lconvert/tst_lconvert.cpp b/tests/auto/linguist/lconvert/tst_lconvert.cpp
index 998f588..a3c29d8 100644
--- a/tests/auto/linguist/lconvert/tst_lconvert.cpp
+++ b/tests/auto/linguist/lconvert/tst_lconvert.cpp
@@ -317,6 +317,8 @@ void tst_lconvert::roundtrips_data()
QTest::newRow("po-xliff-po (plural-2)") << "plural-2.po" << poXlfPo << noArgs;
QTest::newRow("po-xliff-po (plural-3)") << "plural-3.po" << poXlfPo << noArgs;
+ QTest::newRow("po-ts-po (references)") << "test-refs.po" << poTsPo << noArgs;
+
QTest::newRow("ts20-ts11-ts20 (utf8)") << "codec-utf8.ts" << tsTs11Ts << noArgs;
QTest::newRow("ts20-ts11-ts20 (cp1252)") << "codec-cp1252.ts" << tsTs11Ts << noArgs;
QTest::newRow("ts20-ts11-ts20 (dual-encoding)") << "dual-encoding.ts" << tsTs11Ts << noArgs;
='decoration'>Dana Robinson2019-02-011-1/+1 | | * | | | Updated sec2, log, and core VFDs to use pread/pwrite whenDana Robinson2019-01-318-23/+139 | * | | | | Merge pull request #1516 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:valgrind_fixes...Dana Robinson2019-02-016-21/+15 | |\ \ \ \ \ | | * | | | | Updated H5Dio.c comment.Dana Robinson2019-02-011-5/+2 | | * | | | | Fixed a valgrind issue with the unprotect log message. The loggingDana Robinson2019-01-315-15/+12 | | * | | | | Fixed a bug revealed by the dtransform test. A datatype transformDana Robinson2019-01-311-1/+1 | | |/ / / / | | | | * | Add batchscript options that work when running ctest directly.Larry Knox2019-02-043-5/+9 | | | |/ / | | | * | Correct H5DIFF to PH5DIFF in *ctestS.sl.in.cmake list of parallel testsLarry Knox2019-02-027-18/+32 | | | * | Change examples file to zip for CMake zip file.Larry Knox2019-02-011-1/+1 | | | * | Update bin/release for filename changes and HPC-CMake tar fileLarry Knox2019-02-011-7/+11 | | | * | Add new files to MANIFEST.Larry Knox2019-02-012-0/+10 | | |/ / | |/| | | * | | Merge pull request #1508 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:develop to developLarry Knox2019-01-3118-10/+553 | |\ \ \ | | * | | Add more specific batch scripts.Larry Knox2019-01-318-7/+157 | | * | | Account info can be submitted as an argument to run the batch scripts.Larry Knox2019-01-282-33/+0 | | * | | Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/~lrknox/hdf5_lrk...Larry Knox2019-01-281-1/+1 | | |\ \ \ | | | * \ \ Merging in latest from upstream (HDFFV/hdf5:refs/heads/develop)Larry Knox2019-01-281-1/+1 | | | |\ \ \ | | | | |/ / | | * | | | Add HDF5options.cmake files for serial and parallel tests on HPCLarry Knox2019-01-283-0/+313 | | |/ / / | | * | | Remove knl configuration from ctestS.sl.in.cmake.Larry Knox2019-01-273-1/+33 | | * | | Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/~lrknox/hdf5_lrk...Larry Knox2019-01-2614-50/+159 | | |\ \ \ | | * | | | Add batch files with batch parameters specific to cori and ray.Larry Knox2019-01-269-5/+86 | * | | | | Merge pull request #1513 in HDFFV/hdf5 from ~NFORTNE2/hdf5_naf:develop to dev...Neil Fortner2019-01-301-0/+6 | |\ \ \ \ \ | | |_|_|/ / | |/| | | | | | * | | | Merge branch 'develop' of ssh://bitbucket.hdfgroup.org:7999/~nfortne2/hdf5_na...Neil Fortner2019-01-3042-527/+567 | | |\ \ \ \ | | |/ / / / | |/| | | | | * | | | | Merge pull request #1504 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to developAllen Byrne2019-01-281-1/+1 | |\ \ \ \ \ | | |_|_|/ / | |/| | | | | | * | | | Revert build name settingAllen Byrne2019-01-271-1/+1 | |/ / / / | * | | | Merge pull request #1503 in HDFFV/hdf5 from ~BMRIBLER/hdf5_bmr_fixbug:develop...Binh-Minh Ribler2019-01-261-0/+1 | |\ \ \ \ | | * \ \ \ Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/~bmribler/hdf5_b...Binh-Minh Ribler2019-01-267-26/+28 | | |\ \ \ \ | | |/ / / / | |/| | | | | * | | | | Merge pull request #1499 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to developAllen Byrne2019-01-262-2/+3 | |\ \ \ \ \ | | * | | | | Invalid position of declaration fixed.Allen Byrne2019-01-251-1/+2 | | * | | | | Fix CMake on WindowsAllen Byrne2019-01-251-1/+1 | | | * | | | Added test file for CMakeBinh-Minh Ribler2019-01-261-0/+1 | | | | * | | Add RELEASE.txt note for unknown message fix (pull request 1448)Neil Fortner2019-01-301-0/+6 | | | | | | * Fix some collective metadata read issuesJordan Henderson2019-02-1211-87/+381 | | |_|_|_|/ | |/| | | | | * | | | | Merge pull request #1500 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:valgrind_fixes...Dana Robinson2019-01-251-9/+9 | |\ \ \ \ \ | | |/ / / / | |/| | | | | | * | | | Fixed a bug identified by valgrind in the cork test.Dana Robinson2019-01-251-9/+9 | |/ / / / | * | | | Merge pull request #1498 in HDFFV/hdf5 from ~BMRIBLER/hdf5_bmr_fixbug:develop...Binh-Minh Ribler2019-01-252-0/+1 | |\ \ \ \ | | |/ / / | | * | | Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/~bmribler/hdf5_b...Binh-Minh Ribler2019-01-2512-83/+110 | | |\ \ \ | | * | | | Added data file for test and updated MANIFESTBinh-Minh Ribler2019-01-252-0/+1 | * | | | | Merge pull request #1496 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to developAllen Byrne2019-01-255-15/+16 | |\ \ \ \ \ | | |_|/ / / | |/| | | | | | * | | | Merging in latest from upstream (HDFFV/hdf5:refs/heads/develop)Allen Byrne2019-01-255-24/+129 | | |\ \ \ \ | | |/ / / / | |/| | | | | * | | | | Merge pull request #1479 in HDFFV/hdf5 from ~BMRIBLER/hdf5_bmr_fixbug:develop...Binh-Minh Ribler2019-01-245-24/+129 | |\ \ \ \ \ | | | |/ / / | | |/| | / | | |_|_|/ | |/| | | | | * | | Added test for HDFFV-10588Binh-Minh Ribler2019-01-242-1/+102 | | * | | Fixed HDFFV-10684Binh-Minh Ribler2019-01-202-21/+19 | | * | | Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/~bmribler/hdf5_b...Binh-Minh Ribler2019-01-15