diff --git a/applets/lock_logout/contents/ui/ConfigGeneral.qml b/applets/lock_logout/contents/ui/ConfigGeneral.qml --- a/applets/lock_logout/contents/ui/ConfigGeneral.qml +++ b/applets/lock_logout/contents/ui/ConfigGeneral.qml @@ -86,7 +86,7 @@ } QtControls.CheckBox { id: sleep - text: i18n("Suspend") + text: i18nc("Suspend to RAM", "Sleep") enabled: iconsPage.canSuspend && (checkedOptions > 1 || !checked) } } diff --git a/applets/lock_logout/contents/ui/data.js b/applets/lock_logout/contents/ui/data.js --- a/applets/lock_logout/contents/ui/data.js +++ b/applets/lock_logout/contents/ui/data.js @@ -17,7 +17,7 @@ }, { 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" }, { diff --git a/applets/lock_logout/contents/ui/lockout.qml b/applets/lock_logout/contents/ui/lockout.qml --- a/applets/lock_logout/contents/ui/lockout.qml +++ b/applets/lock_logout/contents/ui/lockout.qml @@ -138,7 +138,7 @@ 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 diff --git a/lookandfeel/contents/logout/Logout.qml b/lookandfeel/contents/logout/Logout.qml --- a/lookandfeel/contents/logout/Logout.qml +++ b/lookandfeel/contents/logout/Logout.qml @@ -160,7 +160,7 @@ 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 diff --git a/runners/powerdevil/PowerDevilRunner.cpp b/runners/powerdevil/PowerDevilRunner.cpp --- a/runners/powerdevil/PowerDevilRunner.cpp +++ b/runners/powerdevil/PowerDevilRunner.cpp @@ -181,7 +181,7 @@ match2.setId(QStringLiteral("DimHalf")); matches.append(match2); } - } else if (term.compare(i18nc("Note this is a KRunner keyword", "suspend"), Qt::CaseInsensitive) == 0) { + } else if (term.compare(i18nc("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 @@ if (states.contains(Solid::PowerManagement::HibernateState)) { addSuspendMatch(Solid::PowerManagement::HibernateState, matches); } - } else if (term.compare(i18nc("Note this is a KRunner keyword", "sleep"), Qt::CaseInsensitive) == 0 || + } else if (term.compare(i18nc("Note this is a KRunner keyword", "suspend"), Qt::CaseInsensitive) == 0 || term.compare(i18nc("Note this is a KRunner keyword", "to ram"), Qt::CaseInsensitive) == 0) { addSuspendMatch(Solid::PowerManagement::SuspendState, matches); } else if (term.compare(i18nc("Note this is a KRunner keyword", "hibernate"), Qt::CaseInsensitive) == 0 || @@ -213,18 +213,20 @@ case Solid::PowerManagement::SuspendState: case Solid::PowerManagement::StandbyState: match.setIconName(QStringLiteral("system-suspend")); - match.setText(i18n("Suspend")); + match.setText(i18nc("Suspend to RAM", "Sleep")); + match.setSubtext(i18n("Suspend to RAM")); match.setRelevance(1); break; case Solid::PowerManagement::HibernateState: match.setIconName(QStringLiteral("system-suspend-hibernate")); - match.setText(i18n("Hibernate")); + match.setText(i18nc("Suspend to disk", "Hibernate")); + match.setSubtext(i18n("Suspend to disk")); match.setRelevance(0.99); break; } match.setData(value); - match.setId(QStringLiteral("Suspend")); + match.setId(QStringLiteral("Sleep")); matches.append(match); } diff --git a/sddm-theme/Main.qml b/sddm-theme/Main.qml --- a/sddm-theme/Main.qml +++ b/sddm-theme/Main.qml @@ -175,7 +175,7 @@ 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