Commit 12c900c5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Time to increase version + port foreach

parent 312bf373
#minimum requirements #minimum requirements
cmake_minimum_required(VERSION 3.5 FATAL_ERROR) cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
# KDE Application Version, managed by release script # KDE Application Version, managed by release script
set(RELEASE_SERVICE_VERSION_MAJOR "21") set(RELEASE_SERVICE_VERSION_MAJOR "21")
...@@ -9,8 +9,8 @@ set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_ ...@@ -9,8 +9,8 @@ set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_
project(klettres VERSION ${RELEASE_SERVICE_VERSION}) project(klettres VERSION ${RELEASE_SERVICE_VERSION})
set(QT_MIN_VERSION "5.12.0") set(QT_MIN_VERSION "5.15.0")
set(KF5_MIN_VERSION "5.68.0") set(KF5_MIN_VERSION "5.83.0")
# we need some parts of the ECM CMake helpers # we need some parts of the ECM CMake helpers
......
...@@ -91,11 +91,11 @@ QStringList LangUtils::getLanguages() ...@@ -91,11 +91,11 @@ QStringList LangUtils::getLanguages()
return m_languages; return m_languages;
} }
QStringList LangUtils::getLanguagesNames(QStringList languagesList) QStringList LangUtils::getLanguagesNames(const QStringList &languagesList)
{ {
QStringList languagesNames; QStringList languagesNames;
foreach(const QString &language, languagesList) { for (const QString &language : languagesList) {
if (language == QLatin1String("hi-ro")) { if (language == QLatin1String("hi-ro")) {
languagesNames.append(i18n("Romanized Hindi")); languagesNames.append(i18n("Romanized Hindi"));
} else if (language == QLatin1String("lug_UG")) { } else if (language == QLatin1String("lug_UG")) {
......
...@@ -33,7 +33,7 @@ public: ...@@ -33,7 +33,7 @@ public:
static QStringList getLanguages(); static QStringList getLanguages();
static void writeLangConfig(); static void writeLangConfig();
///All available languages translated names ///All available languages translated names
static QStringList getLanguagesNames(QStringList languagesList); static QStringList getLanguagesNames(const QStringList &languagesList);
}; };
#endif #endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment