File indexing completed on 2024-04-21 03:54:20

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     void addCustomDomainPath();
0026 
0027     void testThreads();
0028 
0029     void testLocalizedTranslator();
0030     void semanticTags();
0031     void setFormatForMarker();
0032     void multipleLanguages();
0033     void untranslatedText();
0034     void brokenTags();
0035     void brokenStructTagUsages();
0036 
0037     void testLazy();
0038 
0039 private:
0040     bool m_hasFrench;
0041     bool m_hasCatalan;
0042     QTemporaryDir m_tempDir;
0043     bool compileCatalogs(const QStringList &catalogs, const QDir &dataDir, const QString &language);
0044 };
0045 
0046 #endif // KLOCALIZEDSTRINGTEST_H