File indexing completed on 2022-09-27 12:25:41

0001 /*
0002     SPDX-FileCopyrightText: 2007 Pino Toscano <pino@kde.org>
0003     SPDX-FileCopyrightText: 2007-2008 Anne-Marie Mahfouf <annma@kde.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef LANGUTILS_H
0009 #define LANGUTILS_H
0010 
0011 
0012 #include <QStringList>
0013 
0014 class LangUtils
0015 {
0016 public:
0017     static bool hasSpecialChars(const QString& lang);
0018     ///Indian languages cannot have isLetter()
0019     static bool isIndian(const QString& lang);
0020     ///Available languages ISO names
0021     static QStringList getLanguages();
0022     static void writeLangConfig();
0023     ///All available languages translated names
0024     static QStringList getLanguagesNames(const QStringList &languagesList);
0025 };
0026 
0027 #endif