[libraries/kirigami-app-components/release/1.0] src/actioncollection: Fix HelpContents action text

Marco Martin <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a6ec16ffe14a746de4e63477c789e10f3d8d9466 by Marco Martin, on behalf of Manuel Alcaraz Zambrano.
Committed on 28/07/2026 at 10:59.
Pushed by mart into branch 'release/1.0'.

Fix HelpContents action text

HelpContents action text contains the name of the application, which
needs to be provided to the translation.

BUG: 522072
FIXED-IN: 1.0.1

M  +3    -0    src/actioncollection/standardactiondata.cpp

https://invent.kde.org/libraries/kirigami-app-components/-/commit/a6ec16ffe14a746de4e63477c789e10f3d8d9466

diff --git a/src/actioncollection/standardactiondata.cpp b/src/actioncollection/standardactiondata.cpp
index 4f88edb..0943406 100644
--- a/src/actioncollection/standardactiondata.cpp
+++ b/src/actioncollection/standardactiondata.cpp
@@ -48,6 +48,9 @@ void StandardActionData::setStandardAction(StandardActionData::StandardAction st
         const QString currencyCode = QLocale().currencySymbol(QLocale::CurrencyIsoCode).toLower();
         icon()->setName(QStringLiteral("help-donate-%1").arg(currencyCode));
         setText(QCoreApplication::translate("KStandardActions", info->psLabel));
+    } else if (standardAction == HelpContents) {
+        icon()->setName(info->psIconName.toString());
+        setText(QCoreApplication::translate("KStandardActions", info->psLabel).arg(QGuiApplication::applicationDisplayName()));
     } else {
         icon()->setName(info->psIconName.toString());
         setText(QCoreApplication::translate("KStandardActions", info->psLabel));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.