From 6ec7e919fb9f7fe80221810da4f7efe6d56ebf4a Mon Sep 17 00:00:00 2001 From: Natalie Clarius Date: Tue, 7 May 2024 00:48:53 +0200 Subject: [PATCH] plugins/nightlight: clarify strings for inhibition To clarify that the toggle action merely temporarily disables the blue light filter, rather than turning the schedule off permanently like the "Disbaled" setting in the KCM does, use "suspend/resume" terminology instead of "off/on" in the keyboard shortcut and OSD. Follow-up on plasma-workspace!4262 CCBUG: 486647 --- src/plugins/nightlight/nightlightmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/nightlight/nightlightmanager.cpp b/src/plugins/nightlight/nightlightmanager.cpp index afcf4f9185..821f4a3d5e 100644 --- a/src/plugins/nightlight/nightlightmanager.cpp +++ b/src/plugins/nightlight/nightlightmanager.cpp @@ -64,8 +64,8 @@ NightLightManager::NightLightManager() : QStringLiteral("redshift-status-on"); const QString text = isInhibited() - ? i18nc("Night Light was disabled", "Night Light Off") - : i18nc("Night Light was enabled", "Night Light On"); + ? i18nc("Night Light was temporarily disabled", "Night Light Suspended") + : i18nc("Night Light was reenabled from temporary suspension", "Night Light Resumed"); QDBusMessage message = QDBusMessage::createMethodCall( QStringLiteral("org.kde.plasmashell"), @@ -86,7 +86,7 @@ NightLightManager::NightLightManager() QAction *toggleAction = new QAction(this); toggleAction->setProperty("componentName", QStringLiteral("kwin")); toggleAction->setObjectName(QStringLiteral("Toggle Night Color")); - toggleAction->setText(i18n("Toggle Night Light")); + toggleAction->setText(i18nc("Temporarily disable/reenable Night Light", "Suspend/Resume Night Light")); KGlobalAccel::setGlobalShortcut(toggleAction, QList()); connect(toggleAction, &QAction::triggered, this, &NightLightManager::toggle);