Fix cover page text

This commit is contained in:
Matti Viljanen 2020-06-14 15:56:14 +03:00
parent a5a8d4fbda
commit 0bf676f0d2
No known key found for this signature in database
GPG key ID: CF32A1495158F888
6 changed files with 25 additions and 45 deletions

View file

@ -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")
}
}
}

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>