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:
parent
0ae178016a
commit
2e640ce13a
@ -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"));
|
||||
|
@ -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"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user