Fix cover page text
This commit is contained in:
parent
a5a8d4fbda
commit
0bf676f0d2
6 changed files with 25 additions and 45 deletions
|
@ -36,11 +36,11 @@ CoverBackground {
|
|||
onChargeChanged: updateView()
|
||||
function updateView() {
|
||||
if(charge <= settings.lowerLimit && battery.state === "discharging") {
|
||||
coverText.text = qsTr("Connect\ncharger")
|
||||
coverText.text = qsTr("Connect charger")
|
||||
}
|
||||
else if(battery.charge >= settings.upperLimit &&
|
||||
(battery.state === "charging" || battery.state === "idle")) {
|
||||
coverText.text = qsTr("Disconnect\ncharger")
|
||||
coverText.text = qsTr("Disconnect charger")
|
||||
}
|
||||
else if(battery.chargerConnected && battery.state === "charging") {
|
||||
coverText.text = qsTr("Charging")
|
||||
|
@ -49,7 +49,7 @@ CoverBackground {
|
|||
coverText.text = qsTr("Not charging")
|
||||
}
|
||||
else { // Discharging
|
||||
coverText.text = qsTr("Battery\nBuddy")
|
||||
coverText.text = qsTr("Battery Buddy")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,20 +43,16 @@
|
|||
<translation>Akku ei\nlatauksessa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Connect
|
||||
charger</source>
|
||||
<translation>Kytke\nlaturi</translation>
|
||||
<source>Connect charger</source>
|
||||
<translation>Kytke laturi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Disconnect
|
||||
charger</source>
|
||||
<translation>Irrota\nlaturi</translation>
|
||||
<source>Disconnect charger</source>
|
||||
<translation>Irrota laturi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Battery
|
||||
Buddy</source>
|
||||
<translation>Battery
|
||||
Buddy</translation>
|
||||
<source>Battery Buddy</source>
|
||||
<translation>Battery Buddy</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
|
|
@ -35,18 +35,15 @@
|
|||
<context>
|
||||
<name>CoverPage</name>
|
||||
<message>
|
||||
<source>Connect
|
||||
charger</source>
|
||||
<source>Connect charger</source>
|
||||
<translation>Branchez le chargeur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Disconnect
|
||||
charger</source>
|
||||
<source>Disconnect charger</source>
|
||||
<translation>Débranchez le chargeur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Battery
|
||||
Buddy</source>
|
||||
<source>Battery Buddy</source>
|
||||
<translation>Battery Buddy</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
|
|
@ -43,22 +43,16 @@
|
|||
<translation>Laddar inte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Connect
|
||||
charger</source>
|
||||
<translation>Anslut
|
||||
laddare</translation>
|
||||
<source>Connect charger</source>
|
||||
<translation>Anslut laddare</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Disconnect
|
||||
charger</source>
|
||||
<translation>Koppla ifrån
|
||||
laddaren</translation>
|
||||
<source>Disconnect charger</source>
|
||||
<translation>Koppla ifrån laddaren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Battery
|
||||
Buddy</source>
|
||||
<translation>Battery
|
||||
Buddy</translation>
|
||||
<source>Battery Buddy</source>
|
||||
<translation>Battery Buddy</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
|
|
@ -35,20 +35,16 @@
|
|||
<context>
|
||||
<name>CoverPage</name>
|
||||
<message>
|
||||
<source>Connect
|
||||
charger</source>
|
||||
<source>Connect charger</source>
|
||||
<translation>连接充电器</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Disconnect
|
||||
charger</source>
|
||||
<source>Disconnect charger</source>
|
||||
<translation>断开充电器</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Battery
|
||||
Buddy</source>
|
||||
<translation>Battery
|
||||
Buddy(电池搭档)</translation>
|
||||
<source>Battery Buddy</source>
|
||||
<translation>Battery Buddy(电池搭档)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Charging</source>
|
||||
|
|
|
@ -43,18 +43,15 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Connect
|
||||
charger</source>
|
||||
<source>Connect charger</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Disconnect
|
||||
charger</source>
|
||||
<source>Disconnect charger</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Battery
|
||||
Buddy</source>
|
||||
<source>Battery Buddy</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
Loading…
Reference in a new issue