Skip to content

Commit 91fadeb

Browse files
committed
[STOBJECT] Explicitly tell the user the battery is fully charged
Short answer: our UI sucks bolas rojas. Long answer: when the NT kernel informs the user-mode part of the system that the battery is no longer charging, the machine is directly powered up by the AC adapter. This is understood by determining the presence of AC_LINE_ONLINE status bit in ACLineStatus member field, which is a Windows API construct. In the NT world this is understood by checking the power state returned by the BATTERY_STATUS structure. What's happening right now is that when the battery is fully charged, ROS UI simply displays "100% remaining" implying the battery is about to discharge, which is not the case. This is extremely confusing to the user. AND WORST PART IS THAT IT'S XP/2003 DESIGN, AND I HATE IT UGGGHHH. With this patch we're leaning towards Windows 10/11 way of informing the user the battery is fully charged. VIVA LA NT6! CORE-18969 CORE-19452
1 parent 5dbf87e commit 91fadeb

File tree

18 files changed

+24
-0
lines changed

18 files changed

+24
-0
lines changed

dll/shellext/stobject/lang/cs-CZ.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ BEGIN
2424
IDS_PWR_AC "On AC power"
2525
IDS_PWR_HOURS_REMAINING "zbývá %1!u!:%2!02u! hodin (%3!u!%%)"
2626
IDS_PWR_MINUTES_REMAINING "zbývá %1!u! minut (%2!u!%%)"
27+
IDS_PWR_FULLY_CHARGED "Fully charged"
2728

2829
//Hotplug related strings
2930
IDS_HOTPLUG_REMOVE_1 "Bezpečně odebrat hardware"

dll/shellext/stobject/lang/de-DE.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ BEGIN
2424
IDS_PWR_AC "Mit Wechselstrom"
2525
IDS_PWR_HOURS_REMAINING "%1!u!:%2!02u! Stunden (%3!u!%%) verbleibend"
2626
IDS_PWR_MINUTES_REMAINING "%1!u! Min. (%2!u!%%) verbleibend"
27+
IDS_PWR_FULLY_CHARGED "Fully charged"
2728

2829
//Hotplug related strings
2930
IDS_HOTPLUG_REMOVE_1 "Hardware sicher entfernen"

dll/shellext/stobject/lang/en-US.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ BEGIN
2424
IDS_PWR_AC "On AC power"
2525
IDS_PWR_HOURS_REMAINING "%1!u!:%2!02u! hours (%3!u!%%) remaining"
2626
IDS_PWR_MINUTES_REMAINING "%1!u! min (%2!u!%%) remaining"
27+
IDS_PWR_FULLY_CHARGED "Fully charged"
2728

2829
//Hotplug related strings
2930
IDS_HOTPLUG_REMOVE_1 "Safely Remove Hardware"

dll/shellext/stobject/lang/es-ES.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ BEGIN
2525
IDS_PWR_AC "En corriente alterna"
2626
IDS_PWR_HOURS_REMAINING "Quedan %1!u!:%2!02u! horas (%3!u!%%)"
2727
IDS_PWR_MINUTES_REMAINING "Quedan %1!u! minutos (%2!u!%%)"
28+
IDS_PWR_FULLY_CHARGED "Fully charged"
2829

2930
//Hotplug related strings
3031
IDS_HOTPLUG_REMOVE_1 "Desconectar de forma segura"

dll/shellext/stobject/lang/fr-FR.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ BEGIN
2424
IDS_PWR_AC "Sur secteur"
2525
IDS_PWR_HOURS_REMAINING "%1!u!:%2!02u! heures (%3!u!%%) restantes"
2626
IDS_PWR_MINUTES_REMAINING "%1!u! mins (%2!u!%%) restantes"
27+
IDS_PWR_FULLY_CHARGED "Fully charged"
2728

2829
//Hotplug related strings
2930
IDS_HOTPLUG_REMOVE_1 "Retirer le périphérique en sécurité"

dll/shellext/stobject/lang/hi-IN.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ BEGIN
3131
IDS_PWR_AC "On AC power"
3232
IDS_PWR_HOURS_REMAINING "%1!u!:%2!02u! घंटे (%3!u!%%) शेष"
3333
IDS_PWR_MINUTES_REMAINING "%1!u! मिनट (%2!u!%%) शेष"
34+
IDS_PWR_FULLY_CHARGED "Fully charged"
3435

3536
//Hotplug related strings
3637
IDS_HOTPLUG_REMOVE_1 "हार्डवेयर सुरक्षित रूप से निकालें"

dll/shellext/stobject/lang/it-IT.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ BEGIN
2424
IDS_PWR_AC "Alimentazione da rete AC"
2525
IDS_PWR_HOURS_REMAINING "%1!u!:%2!02u! ore (%3!u!%%) rimanenti"
2626
IDS_PWR_MINUTES_REMAINING "%1!u! minuti (%2!u!%%) rimanenti"
27+
IDS_PWR_FULLY_CHARGED "Fully charged"
2728

2829
//Hotplug related strings
2930
IDS_HOTPLUG_REMOVE_1 "Rimozione sicura dell'Hardware"

dll/shellext/stobject/lang/ja-JP.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ BEGIN
2424
IDS_PWR_AC "交流電源"
2525
IDS_PWR_HOURS_REMAINING "残り %1!u!:%2!02u! 時間 (%3!u!%%)"
2626
IDS_PWR_MINUTES_REMAINING "残り %1!u! 分 (%2!u!%%)"
27+
IDS_PWR_FULLY_CHARGED "Fully charged"
2728

2829
//Hotplug related strings
2930
IDS_HOTPLUG_REMOVE_1 "安全なハードウェアの取り外し"

dll/shellext/stobject/lang/pl-PL.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ BEGIN
2424
IDS_PWR_AC "Podłączony do zasilania"
2525
IDS_PWR_HOURS_REMAINING "Pozostało %1!u!:%2!02u! godzin (%3!u!%%)"
2626
IDS_PWR_MINUTES_REMAINING "Pozostało %1!u! minut (%2!u!%%)"
27+
IDS_PWR_FULLY_CHARGED "Fully charged"
2728

2829
//Hotplug related strings
2930
IDS_HOTPLUG_REMOVE_1 "Bezpieczne usuwanie sprzętu"

dll/shellext/stobject/lang/pt-PT.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ BEGIN
2424
IDS_PWR_AC "Energia AC"
2525
IDS_PWR_HOURS_REMAINING "%1!u!:%2!02u! horas (%3!u!%%) remanescente"
2626
IDS_PWR_MINUTES_REMAINING "%1!u! min (%2!u!%%) remanescente"
27+
IDS_PWR_FULLY_CHARGED "Fully charged"
2728

2829
//Hotplug related strings
2930
IDS_HOTPLUG_REMOVE_1 "&Remover Hardware em segurança"

0 commit comments

Comments
 (0)