diff --git a/daemon/powerdevilcore.cpp b/daemon/powerdevilcore.cpp --- a/daemon/powerdevilcore.cpp +++ b/daemon/powerdevilcore.cpp @@ -88,7 +88,7 @@ void Core::loadCore(BackendInterface* backend) { if (!backend) { - onBackendError(i18n("No valid Power Management backend plugins are available. " + onBackendError(i18n("No valid Power Management backend plugins available. " "A new installation might solve this problem.")); return; } @@ -326,8 +326,8 @@ } if (!config.isValid()) { - emitNotification(QStringLiteral("powerdevilerror"), i18n("The profile \"%1\" has been selected, " - "but it does not exist.\nPlease check your PowerDevil configuration.", + emitNotification(QStringLiteral("powerdevilerror"), i18n("Profile \"%1\" has been selected, " + "but the profile does not exist.\nPlease check your PowerDevil configuration.", profileId)); return; } @@ -364,7 +364,7 @@ //TODO Maybe Remove from the configuration if unsupported qCWarning(POWERDEVIL) << "The profile " << profileId << "tried to activate" << actionName << "a non-existent action. This is usually due to an installation problem," - " or to a configuration problem, or simply the action is not supported"; + " a configuration problem, or the action is not supported"; } } @@ -389,7 +389,7 @@ if (!m_sessionActivityInhibit.contains(activity)) { int cookie = PolicyAgent::instance()->AddInhibition(PolicyAgent::InterruptSession, i18n("Activity Manager"), - i18n("This activity's policies prevent the system from suspending")); + i18n("This activity's policies prevent the system from going to sleep")); m_sessionActivityInhibit.insert(activity, cookie); } @@ -462,7 +462,7 @@ } emitRichNotification(QStringLiteral("pluggedin"), i18n("Extra Battery Added"), - i18n("All pending suspend actions have been canceled.")); // FIXME This wording is too technical + i18n("The computer will no longer go to sleep.")); } } @@ -538,22 +538,22 @@ case Battery::MouseBattery: title = i18n("Mouse Battery Low (%1% Remaining)", currentPercent); msg = i18nc("Placeholder is device name", - "The battery in your mouse (\"%1\") is low, and the device may turn itself off at any time. " - "Please replace or charge the battery as soon as possible.", name); + "The battery in your mouse (\"%1\") is running low, and the device may turn itself off at any time. " + "Please replace or recharge the battery.", name); icon = QStringLiteral("input-mouse"); break; case Battery::KeyboardBattery: title = i18n("Keyboard Battery Low (%1% Remaining)", currentPercent); msg = i18nc("Placeholder is device name", - "The battery in your keyboard (\"%1\") is low, and the device may turn itself off at any time. " - "Please replace or charge the battery as soon as possible.", name); + "The battery in your keyboard (\"%1\") is running low, and the device may turn itself off at any time. " + "Please replace or recharge the battery.", name); icon = QStringLiteral("input-keyboard"); break; default: title = i18nc("The battery in an external device", "Device Battery Low (%1% Remaining)", currentPercent); msg = i18nc("Placeholder is device name", - "The battery in a connected device (\"%1\") is low, and the device may turn itself off at any time. " - "Please replace or charge the battery as soon as possible.", name); + "The battery in a connected device (\"%1\") is running low, and the device may turn itself off at any time. " + "Please replace or recharge the battery.", name); icon = QStringLiteral("battery-caution"); break; } @@ -577,7 +577,7 @@ } else if (currentPercent <= PowerDevilSettings::batteryLowLevel() && previousPercent > PowerDevilSettings::batteryLowLevel()) { emitRichNotification(QStringLiteral("lowbattery"), i18n("Battery Low (%1% Remaining)", currentPercent), - i18n("Your battery is low. If you need to continue using your computer, either plug in your computer, or shut it down and then change the battery.")); + i18n("Your battery is running low. To continue using your computer, plug it in or shut it down and change the battery.")); return true; } return false; @@ -590,31 +590,31 @@ m_criticalBatteryNotification->setComponentName(QStringLiteral("powerdevil")); m_criticalBatteryNotification->setTitle(i18n("Battery Critical (%1% Remaining)", percent)); - const QStringList actions = {i18nc("Cancel timeout that will automatically suspend system because of low battery", "Cancel")}; + const QStringList actions = {i18nc("Cancel timeout that will automatically put system to sleep because of low battery", "Cancel")}; connect(m_criticalBatteryNotification.data(), &KNotification::action1Activated, this, [this] { m_criticalBatteryTimer->stop(); m_criticalBatteryNotification->close(); }); switch (PowerDevilSettings::batteryCriticalAction()) { case PowerDevil::BundledActions::SuspendSession::ShutdownMode: - m_criticalBatteryNotification->setText(i18n("Your battery level is critical, the computer will be halted in 60 seconds.")); + m_criticalBatteryNotification->setText(i18n("Your battery level is critical, your computer will shut down in 60 seconds.")); m_criticalBatteryNotification->setActions(actions); m_criticalBatteryTimer->start(); break; case PowerDevil::BundledActions::SuspendSession::ToDiskMode: - m_criticalBatteryNotification->setText(i18n("Your battery level is critical, the computer will be hibernated in 60 seconds.")); + m_criticalBatteryNotification->setText(i18n("Your battery level is critical, your computer will go into hibernation mode in 60 seconds.")); m_criticalBatteryNotification->setActions(actions); m_criticalBatteryTimer->start(); break; case PowerDevil::BundledActions::SuspendSession::ToRamMode: - m_criticalBatteryNotification->setText(i18n("Your battery level is critical, the computer will be suspended in 60 seconds.")); + m_criticalBatteryNotification->setText(i18n("Your battery level is critical, your computer will go to sleep in 60 seconds.")); // go into sleep mode? m_criticalBatteryNotification->setActions(actions); m_criticalBatteryTimer->start(); break; default: - m_criticalBatteryNotification->setText(i18n("Your battery level is critical, save your work as soon as possible.")); + m_criticalBatteryNotification->setText(i18n("Your battery level is critical, please save your work.")); // no timer, no actions break; } @@ -638,18 +638,18 @@ } emitRichNotification(QStringLiteral("pluggedin"), i18n("AC Adapter Plugged In"), - i18n("All pending suspend actions have been canceled.")); + i18n("The computer will no longer go to sleep.")); } else { - emitRichNotification(QStringLiteral("pluggedin"), i18n("Running on AC power"), i18n("The power adaptor has been plugged in.")); + emitRichNotification(QStringLiteral("pluggedin"), i18n("Running on AC power"), i18n("The power adapter has been plugged in.")); //uniform spelling throughout (either -er or -or, not both) } } else if (state == BackendInterface::Unplugged) { - emitRichNotification(QStringLiteral("unplugged"), i18n("Running on Battery Power"), i18n("The power adaptor has been unplugged.")); + emitRichNotification(QStringLiteral("unplugged"), i18n("Running on Battery Power"), i18n("The power adapter has been unplugged.")); } } void Core::onBackendError(const QString& error) { - emitNotification(QStringLiteral("powerdevilerror"), i18n("KDE Power Management System could not be initialized. " + emitNotification(QStringLiteral("powerdevilerror"), i18n("The KDE Power Management System could not be initialized. " "The backend reported the following error: %1\n" "Please check your system configuration", error)); } @@ -710,7 +710,7 @@ } if (!previousCharged && currentCharged) { - emitRichNotification(QStringLiteral("fullbattery"), i18n("Charge Complete"), i18n("Your battery is now fully charged.")); + emitRichNotification(QStringLiteral("fullbattery"), i18n("Charging Complete"), i18n("Your battery is now fully charged.")); loadProfile(); } } @@ -766,16 +766,16 @@ void Core::onAboutToSuspend() { if (PowerDevilSettings::pausePlayersOnSuspend()) { - qCDebug(POWERDEVIL) << "Pausing all media players before suspending"; + qCDebug(POWERDEVIL) << "Pausing all media players before sleep"; QDBusPendingCall listNamesCall = QDBusConnection::sessionBus().interface()->asyncCall(QStringLiteral("ListNames")); QDBusPendingCallWatcher *callWatcher = new QDBusPendingCallWatcher(listNamesCall, this); connect(callWatcher, &QDBusPendingCallWatcher::finished, this, [this](QDBusPendingCallWatcher *watcher) { QDBusPendingReply reply = *watcher; watcher->deleteLater(); if (reply.isError()) { - qCWarning(POWERDEVIL) << "Failed to fetch list of DBus service names for pausing players on suspend" << reply.error().message(); + qCWarning(POWERDEVIL) << "Failed to fetch list of DBus service names for pausing players on entering sleep" << reply.error().message(); return; }