File indexing completed on 2024-04-14 14:23:22
0001 /* This file is part of the KDE libraries 0002 SPDX-FileCopyrightText: 2005 Thomas Braxton <brax108@cox.net> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KLOCALIZEDSTRINGTEST_H 0008 #define KLOCALIZEDSTRINGTEST_H 0009 0010 #include <QObject> 0011 #include <QTemporaryDir> 0012 #include <ki18n_export.h> 0013 0014 class KLocalizedStringTest : public QObject 0015 { 0016 Q_OBJECT 0017 private Q_SLOTS: 0018 void initTestCase(); 0019 void correctSubs(); 0020 void wrongSubs(); 0021 void removeAcceleratorMarker(); 0022 void miscMethods(); 0023 void translateToFrenchLowlevel(); 0024 void translateToFrench(); 0025 #if KI18N_ENABLE_DEPRECATED_SINCE(5, 0) 0026 void translateQt(); 0027 #endif 0028 void addCustomDomainPath(); 0029 0030 void testThreads(); 0031 0032 void testLocalizedTranslator(); 0033 void semanticTags(); 0034 void setFormatForMarker(); 0035 void multipleLanguages(); 0036 void untranslatedText(); 0037 void brokenTags(); 0038 void brokenStructTagUsages(); 0039 0040 void testLazy(); 0041 0042 private: 0043 bool m_hasFrench; 0044 bool m_hasCatalan; 0045 QTemporaryDir m_tempDir; 0046 bool compileCatalogs(const QStringList &catalogs, const QDir &dataDir, const QString &language); 0047 }; 0048 0049 #endif // KLOCALIZEDSTRINGTEST_H