This commit is contained in:
George Bișoc 2025-03-30 17:17:42 +02:00 committed by GitHub
commit 1519808aaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 24 additions and 0 deletions

View file

@ -24,6 +24,7 @@ BEGIN
IDS_PWR_AC "On AC power"
IDS_PWR_HOURS_REMAINING "zbývá %1!u!:%2!02u! hodin (%3!u!%%)"
IDS_PWR_MINUTES_REMAINING "zbývá %1!u! minut (%2!u!%%)"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "Bezpečně odebrat hardware"

View file

@ -24,6 +24,7 @@ BEGIN
IDS_PWR_AC "Mit Wechselstrom"
IDS_PWR_HOURS_REMAINING "%1!u!:%2!02u! Stunden (%3!u!%%) verbleibend"
IDS_PWR_MINUTES_REMAINING "%1!u! Min. (%2!u!%%) verbleibend"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "Hardware sicher entfernen"

View file

@ -24,6 +24,7 @@ BEGIN
IDS_PWR_AC "On AC power"
IDS_PWR_HOURS_REMAINING "%1!u!:%2!02u! hours (%3!u!%%) remaining"
IDS_PWR_MINUTES_REMAINING "%1!u! min (%2!u!%%) remaining"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "Safely Remove Hardware"

View file

@ -25,6 +25,7 @@ BEGIN
IDS_PWR_AC "En corriente alterna"
IDS_PWR_HOURS_REMAINING "Quedan %1!u!:%2!02u! horas (%3!u!%%)"
IDS_PWR_MINUTES_REMAINING "Quedan %1!u! minutos (%2!u!%%)"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "Desconectar de forma segura"

View file

@ -24,6 +24,7 @@ BEGIN
IDS_PWR_AC "Sur secteur"
IDS_PWR_HOURS_REMAINING "%1!u!:%2!02u! heures (%3!u!%%) restantes"
IDS_PWR_MINUTES_REMAINING "%1!u! mins (%2!u!%%) restantes"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "Retirer le périphérique en sécurité"

View file

@ -31,6 +31,7 @@ BEGIN
IDS_PWR_AC "On AC power"
IDS_PWR_HOURS_REMAINING "%1!u!:%2!02u! घंटे (%3!u!%%) शेष"
IDS_PWR_MINUTES_REMAINING "%1!u! मिनट (%2!u!%%) शेष"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "हार्डवेयर सुरक्षित रूप से निकालें"

View file

@ -24,6 +24,7 @@ BEGIN
IDS_PWR_AC "Alimentazione da rete AC"
IDS_PWR_HOURS_REMAINING "%1!u!:%2!02u! ore (%3!u!%%) rimanenti"
IDS_PWR_MINUTES_REMAINING "%1!u! minuti (%2!u!%%) rimanenti"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "Rimozione sicura dell'Hardware"

View file

@ -24,6 +24,7 @@ BEGIN
IDS_PWR_AC "交流電源"
IDS_PWR_HOURS_REMAINING "残り %1!u!:%2!02u! 時間 (%3!u!%%)"
IDS_PWR_MINUTES_REMAINING "残り %1!u! 分 (%2!u!%%)"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "安全なハードウェアの取り外し"

View file

@ -24,6 +24,7 @@ BEGIN
IDS_PWR_AC "Podłączony do zasilania"
IDS_PWR_HOURS_REMAINING "Pozostało %1!u!:%2!02u! godzin (%3!u!%%)"
IDS_PWR_MINUTES_REMAINING "Pozostało %1!u! minut (%2!u!%%)"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "Bezpieczne usuwanie sprzętu"

View file

@ -24,6 +24,7 @@ BEGIN
IDS_PWR_AC "Energia AC"
IDS_PWR_HOURS_REMAINING "%1!u!:%2!02u! horas (%3!u!%%) remanescente"
IDS_PWR_MINUTES_REMAINING "%1!u! min (%2!u!%%) remanescente"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "&Remover Hardware em segurança"

View file

@ -32,6 +32,7 @@ BEGIN
IDS_PWR_AC "Când există sursă CA"
IDS_PWR_HOURS_REMAINING "%1!u!:%2!02u! ore (%3!u!%%) rămase"
IDS_PWR_MINUTES_REMAINING "%1!u! minute (%2!u!%%) rămase"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "Eliminarea în siguranţă a unui dispozitiv hardware"

View file

@ -32,6 +32,7 @@ BEGIN
IDS_PWR_AC "От сети переменного тока"
IDS_PWR_HOURS_REMAINING "%1!u!:%2!02u! часов (%3!u!%%) осталось"
IDS_PWR_MINUTES_REMAINING "%1!u! минут (%2!u!%%) осталось"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "Безопасное извлечение устройства"

View file

@ -26,6 +26,7 @@ BEGIN
IDS_PWR_AC "Dalgalı akımda (AC)."
IDS_PWR_HOURS_REMAINING "%1!u!.%2!02u! saat (%%%3!u!) kalan"
IDS_PWR_MINUTES_REMAINING "%1!u! dakika (%%%2!u!) kalan"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "Donanımı Güvenli Kaldır"

View file

@ -26,6 +26,7 @@ BEGIN
IDS_PWR_AC "交流电源"
IDS_PWR_HOURS_REMAINING "剩余 %1!u!:%2!02u!%3!u!%%"
IDS_PWR_MINUTES_REMAINING "剩余 %1!u! 分钟(%2!u!%%"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "安全地删除硬件"

View file

@ -32,6 +32,7 @@ BEGIN
IDS_PWR_AC "交流電源"
IDS_PWR_HOURS_REMAINING "剩餘 %1!u!:%2!02u! 小時(%3!u!%% "
IDS_PWR_MINUTES_REMAINING "剩餘 %1!u! 分鐘(%2!u!%% "
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "安全地移除硬件"

View file

@ -32,6 +32,7 @@ BEGIN
IDS_PWR_AC "交流電源"
IDS_PWR_HOURS_REMAINING "剩餘 %1!u!:%2!02u! 小時(%3!u!%%"
IDS_PWR_MINUTES_REMAINING "剩餘 %1!u! 分鐘(%2!u!%%"
IDS_PWR_FULLY_CHARGED "100% Fully charged"
//Hotplug related strings
IDS_HOTPLUG_REMOVE_1 "安全地移除硬體"

View file

@ -105,6 +105,13 @@ static HICON DynamicLoadIcon(HINSTANCE hinst)
hBatIcon = LoadIcon(hinst, MAKEINTRESOURCE(bc_icons[index]));
g_strTooltip.Format(IDS_PWR_CHARGING, PowerStatus.BatteryLifePercent);
}
else if (PowerStatus.ACLineStatus == AC_LINE_ONLINE &&
PowerStatus.BatteryLifePercent == 100)
{
index = Quantize(PowerStatus.BatteryLifePercent);
hBatIcon = LoadIcon(hinst, MAKEINTRESOURCE(bc_icons[index]));
g_strTooltip.LoadStringW(IDS_PWR_FULLY_CHARGED);
}
else if (((PowerStatus.BatteryFlag & BATTERY_FLAG_NO_BATTERY) == 0) &&
((PowerStatus.BatteryFlag & BATTERY_FLAG_CHARGING) == 0))
{

View file

@ -11,6 +11,7 @@
#define IDS_PWR_AC 161
#define IDS_PWR_HOURS_REMAINING 162
#define IDS_PWR_MINUTES_REMAINING 163
#define IDS_PWR_FULLY_CHARGED 164
#define IDI_BATTERY 200
#define IDI_EXTRACT 210