From 2e640ce13a370362b22b88682502e6d711566bdf Mon Sep 17 00:00:00 2001 From: Nathaniel Graham Date: Mon, 13 Aug 2018 17:23:44 +0200 Subject: [PATCH] Improve Widgets' removal and configure text Summary: This patch makes the text for removal and configuration actions consistent with one another. Test Plan: {F6191533} Reviewers: #plasma, #vdg, abetts Reviewed By: #plasma, #vdg, abetts Subscribers: abetts, broulik, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D14810 --- src/plasma/containment.cpp | 4 ++-- src/plasma/private/applet_p.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plasma/containment.cpp b/src/plasma/containment.cpp index 2dfdc696f..86d680905 100644 --- a/src/plasma/containment.cpp +++ b/src/plasma/containment.cpp @@ -124,12 +124,12 @@ void Containment::init() //btw, do we really want to use title() when it's a desktopcontainment? QAction *closeApplet = actions()->action(QStringLiteral("remove")); if (closeApplet) { - closeApplet->setText(i18nc("%1 is the name of the applet", "Remove this %1", title())); + closeApplet->setText(i18nc("%1 is the name of the applet", "Remove %1", title())); } QAction *configAction = actions()->action(QStringLiteral("configure")); if (configAction) { - configAction->setText(i18nc("%1 is the name of the applet", "%1 Settings", title())); + configAction->setText(i18nc("%1 is the name of the applet", "Configure %1...", title())); } QAction *appletBrowserAction = actions()->action(QStringLiteral("add widgets")); diff --git a/src/plasma/private/applet_p.cpp b/src/plasma/private/applet_p.cpp index a3b1a0803..e4ca4447d 100644 --- a/src/plasma/private/applet_p.cpp +++ b/src/plasma/private/applet_p.cpp @@ -121,7 +121,7 @@ void AppletPrivate::init(const QString &_packagePath, const QVariantList &args) QAction *closeApplet = actions->action(QStringLiteral("remove")); if (closeApplet) { - closeApplet->setText(i18nc("%1 is the name of the applet", "Remove this %1", q->title())); + closeApplet->setText(i18nc("%1 is the name of the applet", "Remove %1", q->title())); } QAction *configAction = actions->action(QStringLiteral("configure"));