summaryrefslogtreecommitdiff
path: root/comms/klog/files/patch-src_main.cpp
diff options
context:
space:
mode:
authorMichael Reifenberger <mr@FreeBSD.org>2025-05-16 18:51:29 +0200
committerMichael Reifenberger <mr@FreeBSD.org>2025-05-16 18:51:29 +0200
commitf0cb9ef404dc16456a0ff116a687c29013d97823 (patch)
tree264f8b4b878cd5b8d648895acc1a3f07e60790aa /comms/klog/files/patch-src_main.cpp
parentx11-fm/thunar: Update to 4.20.3 (diff)
comms/klog: Update to 2.4.1
Diffstat (limited to 'comms/klog/files/patch-src_main.cpp')
-rw-r--r--comms/klog/files/patch-src_main.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/comms/klog/files/patch-src_main.cpp b/comms/klog/files/patch-src_main.cpp
index 88e0f3adcefa..a39c8ffe6d2c 100644
--- a/comms/klog/files/patch-src_main.cpp
+++ b/comms/klog/files/patch-src_main.cpp
@@ -1,13 +1,11 @@
---- src/main.cpp.orig 2023-12-26 00:00:15 UTC
+--- src/main.cpp.orig 2025-05-16 09:03:24 UTC
+++ src/main.cpp
-@@ -151,6 +151,10 @@ int main(int argc, char *argv[])
- myappTranslator.load(QCoreApplication::applicationDirPath() + "/translations/klog_" + (QLocale::system().name())); /* Flawfinder: ignore */
- }
-
-+ else if (((QLocale::system().name()).left(1)) == "C") /* Flawfinder: ignore */
-+ { // If language is C, it will execute without showing message
-+
-+ }
- else if (((QLocale::system().name()).left(2)) == "en") /* Flawfinder: ignore */
- { // If language is English, it will execute without showing message
+@@ -96,7 +96,7 @@ void loadTranslations(QApplication &app, QTranslator &
+ missingTranslation = false;
+ }
+- if (missingTranslation && language != "en")
++ if (missingTranslation && language != "en" && language != "C" )
+ {
+ QMessageBox::warning(nullptr, "KLog",
+ QString("No translation files for your language were found. KLog will be shown in English.\n")