/*************************************************************************** * Copyright (C) 2014 Evgeniy Alekseev * * * * This library is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 3.0 of the License, or (at your option) any later version. * * * * This library is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * * Lesser General Public License for more details. * * * * You should have received a copy of the GNU Lesser General Public * * License along with this library. * ***************************************************************************/ #ifndef LANGUAGE_H #define LANGUAGE_H #include class Language : public QObject { Q_OBJECT public: explicit Language(); static QString checkLanguage(const QString language); static QString defineLanguage(const QString configPath, const QString options = QString("OPTIONS")); static QString defineLanguageFromFile(const QString configPath); static QString defineLanguageFromLocale(); static QStringList getAvailableLanguages(); private: static QMap parseOptions(const QString options); }; #endif /* LANGUAGE_H */