Skip to content

Commit ba82228

Browse files
authored
Merge e70e3ff into bf676b5
2 parents bf676b5 + e70e3ff commit ba82228

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

source/winAPI/_powerTracking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ def _getACStatusText(systemPowerStatus: SystemPowerStatus) -> str:
216216
# Translators: This is presented to inform the user of the current battery percentage.
217217
if systemPowerStatus.ACLineStatus & PowerState.AC_ONLINE:
218218
# Translators: Reported when the battery is plugged in, and now is charging.
219-
return _("Charging battery")
219+
return _("Plugged in")
220220
else:
221221
# Translators: Reported when the battery is no longer plugged in, and now is not charging.
222-
return _("AC disconnected")
222+
return _("Unplugged")
223223

224224

225225
def _getBatteryInformation(systemPowerStatus: SystemPowerStatus) -> List[str]:

tests/unit/test_winAPI/test_powerTracking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_ac_status_change_statusChanged_connected(self):
9696
oldPowerState=PowerState.AC_OFFLINE,
9797
)
9898
self.assertEqual(
99-
["Charging battery", '1 percent', '1 hours and 1 minutes remaining'],
99+
["AC connected", '1 percent', '1 hours and 1 minutes remaining'],
100100
actualSpeech,
101101
)
102102

0 commit comments

Comments
 (0)