bar: battery popout use qstr
This commit is contained in:
parent
be9666457c
commit
79504271e4
1 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ Column {
|
|||
spacing: Appearance.spacing.normal
|
||||
|
||||
StyledText {
|
||||
text: `Remaining: ${Math.round(UPower.displayDevice.percentage * 100)}%`
|
||||
text: qsTr("Remaining: %1%").arg(Math.round(UPower.displayDevice.percentage * 100))
|
||||
}
|
||||
|
||||
StyledText {
|
||||
|
|
@ -33,7 +33,7 @@ Column {
|
|||
return comps.join(", ") || fallback;
|
||||
}
|
||||
|
||||
text: `Time ${UPower.onBattery ? "remaining" : "until charged"}: ${UPower.onBattery ? formatSeconds(UPower.displayDevice.timeToEmpty, "Calculating...") : formatSeconds(UPower.displayDevice.timeToFull, "Fully charged!")}`
|
||||
text: qsTr("Time %1: %2").arg(UPower.onBattery ? "remaining" : "until charged").arg(UPower.onBattery ? formatSeconds(UPower.displayDevice.timeToEmpty, "Calculating...") : formatSeconds(UPower.displayDevice.timeToFull, "Fully charged!"))
|
||||
}
|
||||
|
||||
StyledRect {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue