Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/containment.cpp
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Line(s) | 98 | { | |||
---|---|---|---|---|---|
119 | //connect actions | 119 | //connect actions | ||
120 | ContainmentPrivate::addDefaultActions(actions(), this); | 120 | ContainmentPrivate::addDefaultActions(actions(), this); | ||
121 | bool unlocked = immutability() == Types::Mutable; | 121 | bool unlocked = immutability() == Types::Mutable; | ||
122 | 122 | | |||
123 | //fix the text of the actions that need title() | 123 | //fix the text of the actions that need title() | ||
124 | //btw, do we really want to use title() when it's a desktopcontainment? | 124 | //btw, do we really want to use title() when it's a desktopcontainment? | ||
125 | QAction *closeApplet = actions()->action(QStringLiteral("remove")); | 125 | QAction *closeApplet = actions()->action(QStringLiteral("remove")); | ||
126 | if (closeApplet) { | 126 | if (closeApplet) { | ||
127 | closeApplet->setText(i18nc("%1 is the name of the applet", "Remove this %1", title())); | 127 | closeApplet->setText(i18nc("%1 is the name of the applet", "Remove this %1 widget", title())); | ||
gladhorn: The translation help says applet, is widget or applet the better word? But actually the "add… | |||||
128 | } | 128 | } | ||
129 | 129 | | |||
130 | QAction *configAction = actions()->action(QStringLiteral("configure")); | 130 | QAction *configAction = actions()->action(QStringLiteral("configure")); | ||
131 | if (configAction) { | 131 | if (configAction) { | ||
132 | configAction->setText(i18nc("%1 is the name of the applet", "%1 Settings", title())); | 132 | configAction->setText(i18nc("%1 is the name of the applet", "%1 Settings", title())); | ||
133 | } | 133 | } | ||
134 | 134 | | |||
135 | QAction *appletBrowserAction = actions()->action(QStringLiteral("add widgets")); | 135 | QAction *appletBrowserAction = actions()->action(QStringLiteral("add widgets")); | ||
▲ Show 20 Lines • Show All 470 Lines • Show Last 20 Lines |
The translation help says applet, is widget or applet the better word? But actually the "add new" dialog in plasma says widget, so I'm for that for consistency reasons.