diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-11-04 11:17:03 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-11-04 16:24:37 (GMT) |
commit | 9a88c8808f8e084e77ee22f907366250f3a0ad2a (patch) | |
tree | 9813c45e6d1b27264e0d793fddcd1e62546714f1 /tests/auto/linguist/lrelease/tst_lrelease.cpp | |
parent | 1f860338b23d783387b3817de0da100840078edf (diff) | |
download | Qt-9a88c8808f8e084e77ee22f907366250f3a0ad2a.zip Qt-9a88c8808f8e084e77ee22f907366250f3a0ad2a.tar.gz Qt-9a88c8808f8e084e77ee22f907366250f3a0ad2a.tar.bz2 |
add -markuntranslated option
maemo *really* want it, so pushing it in now ...
Diffstat (limited to 'tests/auto/linguist/lrelease/tst_lrelease.cpp')
-rw-r--r-- | tests/auto/linguist/lrelease/tst_lrelease.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/linguist/lrelease/tst_lrelease.cpp b/tests/auto/linguist/lrelease/tst_lrelease.cpp index 39de8a1..93cb97c 100644 --- a/tests/auto/linguist/lrelease/tst_lrelease.cpp +++ b/tests/auto/linguist/lrelease/tst_lrelease.cpp @@ -60,6 +60,7 @@ private slots: void mixedcodecs(); void compressed(); void idbased(); + void markuntranslated(); void dupes(); private: @@ -210,6 +211,18 @@ void tst_lrelease::idbased() QCOMPARE(qtTrId("untranslated_id"), QString::fromAscii("This has no translation.")); } +void tst_lrelease::markuntranslated() +{ + QVERIFY(!QProcess::execute(binDir + "/lrelease -markuntranslated # -idbased testdata/idbased.ts")); + + QTranslator translator; + QVERIFY(translator.load("testdata/idbased.qm")); + qApp->installTranslator(&translator); + + QCOMPARE(qtTrId("test_id"), QString::fromAscii("This is a test string.")); + QCOMPARE(qtTrId("untranslated_id"), QString::fromAscii("#This has no translation.")); +} + void tst_lrelease::dupes() { QProcess proc; |