[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdelibs/KDE/4.8] kdecore/tests: Make sure the decimal symbol
From: Till Adam <till () kdab ! com>
Date: 2012-01-09 20:16:57
Message-ID: 20120109201657.E205EA60A6 () git ! kde ! org
[Download RAW message or body]
Git commit 6263465bd15f31d1a802152062abc08b053f2257 by Till Adam.
Committed on 09/01/2012 at 15:10.
Pushed by tilladam into branch 'KDE/4.8'.
Make sure the decimal symbol during testing is ".", which the tests assume.
M +3 -1 kdecore/tests/klocalizedstringtest.cpp
http://commits.kde.org/kdelibs/6263465bd15f31d1a802152062abc08b053f2257
diff --git a/kdecore/tests/klocalizedstringtest.cpp b/kdecore/tests/klocali=
zedstringtest.cpp
index cb05847..b2276ca 100644
--- a/kdecore/tests/klocalizedstringtest.cpp
+++ b/kdecore/tests/klocalizedstringtest.cpp
@@ -50,12 +50,14 @@ void KLocalizedStringTest::initTestCase ()
=
if (m_hasFrench)
KGlobal::locale()->setLanguage(QStringList() << "fr" << "en_US");
- KGlobal::locale()->setThousandsSeparator(QString(","));
+ KGlobal::locale()->setThousandsSeparator(QLatin1String(","));
+ KGlobal::locale()->setDecimalSymbol(QLatin1String("."));
QCOMPARE(KGlobal::locale()->isApplicationTranslatedInto("en_US"), true=
);
=
if (m_hasFrench) {
QCOMPARE(KGlobal::locale()->isApplicationTranslatedInto("fr"), tru=
e);
}
+
}
=
void KLocalizedStringTest::correctSubs ()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic