From e8ecc6a3fe502713e48d4a6af9432cc58204f20b Mon Sep 17 00:00:00 2001 From: firewave Date: Mon, 29 Apr 2024 16:32:12 +0200 Subject: [PATCH] kde.cfg: added some `*i18n()` and `*i18nc()` functions see https://api.kde.org/frameworks/ki18n/html/prg_guide.html --- cfg/kde.cfg | 37 +++++++++++++++++++++++++++++++++++++ test/cfg/kde.cpp | 11 +++++++++++ tools/donate_cpu_lib.py | 4 ++-- 3 files changed, 50 insertions(+), 2 deletions(-) diff --git a/cfg/kde.cfg b/cfg/kde.cfg index 5973916fd600..4a2cabbf7aa9 100644 --- a/cfg/kde.cfg +++ b/cfg/kde.cfg @@ -48,4 +48,41 @@ + + + + false + + + + + + + + false + + + + + + ki18ncp() + + + + false + + + + + + + + + false + + + + + + diff --git a/test/cfg/kde.cpp b/test/cfg/kde.cpp index 9a2720949eb0..e0fcb29f09c4 100644 --- a/test/cfg/kde.cpp +++ b/test/cfg/kde.cpp @@ -10,6 +10,7 @@ #include #include #include +#include class k_global_static_testclass1 {}; K_GLOBAL_STATIC(k_global_static_testclass1, k_global_static_testinstance1); @@ -30,3 +31,13 @@ void ignoredReturnValue(const KConfigGroup& cfgGroup) // cppcheck-suppress ignoredReturnValue cfgGroup.readEntry("test"); } + +void i18n_test() +{ + (void)i18n("Text"); + (void)xi18n("Text"); + (void)ki18n("Text"); + (void)i18nc("Text", "Context"); + (void)x18nc("Text", "Context"); + (void)ki18nc("Text", "Context"); +} diff --git a/tools/donate_cpu_lib.py b/tools/donate_cpu_lib.py index 338e106b578d..3c08114a5913 100644 --- a/tools/donate_cpu_lib.py +++ b/tools/donate_cpu_lib.py @@ -16,7 +16,7 @@ # Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/ # Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic # changes) -CLIENT_VERSION = "1.3.57" +CLIENT_VERSION = "1.3.58" # Timeout for analysis with Cppcheck in seconds CPPCHECK_TIMEOUT = 30 * 60 @@ -685,7 +685,7 @@ def __init__(self): 'ginac': [''], 'gtk': ['', '', '', '', '', ''], 'libcerror': [''], 'libcurl': [''], 'libsigc++': ['