Commit 95241173 authored by Nate Graham's avatar Nate Graham 🔩

[KRunner, SDDM theme, Logout screen, Login widget] Use the word "Sleep" instead of "Suspend"

[copy-pasted from T10500:]

Problems with the current term:
- It's a somewhat severe-sounding technical term that doesn't intrinsically mean much to the average person. To the extent that it does, the connotations may be negative (e.g. when a misbehaving kid is being kept out of school)
- Our two major closed-source desktop competitors (macOS and Windows) both use the term "Sleep", so user familiarity with "Suspend" is low and falling all the time

I'd like to propose that we use "Sleep" instead, to address the above issues. It's a nicer
word in general, and since it's what our competitors use, we benefit from user familiarity.
We also recently adopted a moon icon with Zs for this, which visually connotes sleep. So it
would make sense to update the string too, because then the string and the icon will both

Test Plan:
KRunner, searched for "Sleep": {F6640273}
KRunner, searched for "Suspend": {F6640284}
Kickoff, searched for "Sleep": {F6640309}
Kickoff, searched for "Suspend": {F6640315}
SDDM theme: {F6626026}
Logout screen: {F6626010}
Logout widget, UI: {F6626034}
Logout widget, config: {F6626035}

Reviewers: #vdg, #plasma, davidedmundson, filipf, mart

Reviewed By: #vdg, #plasma, filipf, mart

Subscribers: abetts, filipf, davidedmundson, plasma-devel

Tags: #plasma

Maniphest Tasks: T10500

Differential Revision:
parent 3bdbf2ff
......@@ -86,7 +86,7 @@ Item {
QtControls.CheckBox {
id: sleep
text: i18n("Suspend")
text: i18nc("Suspend to RAM", "Sleep")
enabled: iconsPage.canSuspend && (checkedOptions > 1 || !checked)
......@@ -17,7 +17,7 @@ var data = [{
}, {
icon: "system-suspend",
operation: "suspendToRam",
tooltip_mainText: i18n("Suspend"),
tooltip_mainText: i18nc("Suspend to RAM", "Sleep"),
tooltip_subText: i18n("Sleep (suspend to RAM)"),
requires: "Suspend"
}, {
......@@ -138,7 +138,7 @@ Flow {
id: sleepDialogComponent
QueryDialog {
titleIcon: "system-suspend"
titleText: i18n("Suspend")
titleText: i18nc("Suspend to RAM", "Sleep")
message: i18n("Do you want to suspend to RAM (sleep)?")
location: plasmoid.location
......@@ -160,7 +160,7 @@ PlasmaCore.ColorScope {
LogoutButton {
id: suspendButton
iconSource: "system-suspend"
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Suspend")
text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "Suspend to RAM", "Sleep")
action: root.sleepRequested
KeyNavigation.left: logoutButton
KeyNavigation.right: hibernateButton
......@@ -181,7 +181,7 @@ void PowerDevilRunner::match(Plasma::RunnerContext &context)
} else if ("Note this is a KRunner keyword", "suspend"), Qt::CaseInsensitive) == 0) {
} else if ("Note this is a KRunner keyword", "sleep"), Qt::CaseInsensitive) == 0) {
QSet< Solid::PowerManagement::SleepState > states = Solid::PowerManagement::supportedSleepStates();
if (states.contains(Solid::PowerManagement::SuspendState)) {
......@@ -191,7 +191,7 @@ void PowerDevilRunner::match(Plasma::RunnerContext &context)
if (states.contains(Solid::PowerManagement::HibernateState)) {
addSuspendMatch(Solid::PowerManagement::HibernateState, matches);
} else if ("Note this is a KRunner keyword", "sleep"), Qt::CaseInsensitive) == 0 ||
} else if ("Note this is a KRunner keyword", "suspend"), Qt::CaseInsensitive) == 0 ||"Note this is a KRunner keyword", "to ram"), Qt::CaseInsensitive) == 0) {
addSuspendMatch(Solid::PowerManagement::SuspendState, matches);
} else if ("Note this is a KRunner keyword", "hibernate"), Qt::CaseInsensitive) == 0 ||
......@@ -213,18 +213,20 @@ void PowerDevilRunner::addSuspendMatch(int value, QList<Plasma::QueryMatch> &mat
case Solid::PowerManagement::SuspendState:
case Solid::PowerManagement::StandbyState:
match.setText(i18nc("Suspend to RAM", "Sleep"));
match.setSubtext(i18n("Suspend to RAM"));
case Solid::PowerManagement::HibernateState:
match.setText(i18nc("Suspend to disk", "Hibernate"));
match.setSubtext(i18n("Suspend to disk"));
......@@ -175,7 +175,7 @@ PlasmaCore.ColorScope {
actionItems: [
ActionButton {
iconSource: "system-suspend"
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Suspend")
text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel","Suspend to RAM","Sleep")
onClicked: sddm.suspend()
enabled: sddm.canSuspend
visible: !inputPanel.keyboardActive
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment