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
This commit is contained in:
Nathaniel Graham 2018-08-13 17:23:44 +02:00
parent 0ae178016a
commit 2e640ce13a
2 changed files with 3 additions and 3 deletions

View File

@ -124,12 +124,12 @@ void Containment::init()
//btw, do we really want to use title() when it's a desktopcontainment? //btw, do we really want to use title() when it's a desktopcontainment?
QAction *closeApplet = actions()->action(QStringLiteral("remove")); QAction *closeApplet = actions()->action(QStringLiteral("remove"));
if (closeApplet) { 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")); QAction *configAction = actions()->action(QStringLiteral("configure"));
if (configAction) { 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")); QAction *appletBrowserAction = actions()->action(QStringLiteral("add widgets"));

View File

@ -121,7 +121,7 @@ void AppletPrivate::init(const QString &_packagePath, const QVariantList &args)
QAction *closeApplet = actions->action(QStringLiteral("remove")); QAction *closeApplet = actions->action(QStringLiteral("remove"));
if (closeApplet) { 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")); QAction *configAction = actions->action(QStringLiteral("configure"));