Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
KLettres
Commits
12c900c5
Commit
12c900c5
authored
May 18, 2021
by
Laurent Montel
😁
Browse files
Time to increase version + port foreach
parent
312bf373
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
12c900c5
#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
set
(
RELEASE_SERVICE_VERSION_MAJOR
"21"
)
...
...
@@ -9,8 +9,8 @@ set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_
project
(
klettres VERSION
${
RELEASE_SERVICE_VERSION
}
)
set
(
QT_MIN_VERSION
"5.1
2
.0"
)
set
(
KF5_MIN_VERSION
"5.
6
8.0"
)
set
(
QT_MIN_VERSION
"5.1
5
.0"
)
set
(
KF5_MIN_VERSION
"5.8
3
.0"
)
# we need some parts of the ECM CMake helpers
...
...
src/langutils.cpp
View file @
12c900c5
...
...
@@ -91,11 +91,11 @@ QStringList LangUtils::getLanguages()
return
m_languages
;
}
QStringList
LangUtils
::
getLanguagesNames
(
QStringList
languagesList
)
QStringList
LangUtils
::
getLanguagesNames
(
const
QStringList
&
languagesList
)
{
QStringList
languagesNames
;
for
each
(
const
QString
&
language
,
languagesList
)
{
for
(
const
QString
&
language
:
languagesList
)
{
if
(
language
==
QLatin1String
(
"hi-ro"
))
{
languagesNames
.
append
(
i18n
(
"Romanized Hindi"
));
}
else
if
(
language
==
QLatin1String
(
"lug_UG"
))
{
...
...
src/langutils.h
View file @
12c900c5
...
...
@@ -33,7 +33,7 @@ public:
static
QStringList
getLanguages
();
static
void
writeLangConfig
();
///All available languages translated names
static
QStringList
getLanguagesNames
(
QStringList
languagesList
);
static
QStringList
getLanguagesNames
(
const
QStringList
&
languagesList
);
};
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment