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