Simplify the battery charge representation

This commit is contained in:
Emir SARI 2024-01-03 13:01:38 +00:00
parent d084c04fa8
commit f927e2631b

View file

@ -86,7 +86,7 @@ SimpleKCM {
default: batteryType = i18n("Unknown battery"); break;
}
const chargePercent = i18nc("%1 is value, %2 is unit", "%1%2", Number(battery.chargePercent).toLocaleString(Qt.locale(), "f", 0), i18n("%"));
const chargePercent = i18nc("%1 is the charge percent, % is the percent sign", "%1%", Number(battery.chargePercent).toLocaleString(Qt.locale(), "f", 0));
return (model.battery.chargeState === Battery.Charging) ? i18nc("%1 is battery type, %2 is charge percent", "%1 %2 (Charging)", batteryType, chargePercent) : i18nc("%1 is battery type, %2 is charge percent", "%1 %2", batteryType, chargePercent);
}