Commit 8503b36f authored by Ionut Alexandrescu's avatar Ionut Alexandrescu

Add Translations

- NOTE the translations only work with Qt5.10 as they use the retranslate
slot in QQmlApplicationEngine
parent 150ca616
QT += qml quick multimedia
CONFIG += c++11
SOURCES += main.cpp
SOURCES += main.cpp \
TranslationSelect.cpp
RESOURCES += qml.qrc
......@@ -17,6 +18,11 @@ QML_DESIGNER_IMPORT_PATH =
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
TRANSLATIONS += Translation/DemoQtWS_en.ts
TRANSLATIONS += Translation/DemoQtWS_fr.ts
TRANSLATIONS += Translation/DemoQtWS_de.ts
TRANSLATIONS += Translation/DemoQtWS_it.ts
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
......@@ -28,3 +34,6 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
DISTFILES +=
HEADERS += \
TranslationSelect.h
......@@ -127,7 +127,7 @@ Item {
{
y: 170
color: "#979eb6"
text: qsTr("Charging Rate 200 Mi/hr 355V 191A")
text: qsTr("Charging Rate")+ " 200 Mi/hr 355V 191A"
font.pixelSize: Variables.fontChargingRate
}
......
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="de_DE">
<context>
<name>AuthenticationTextInput</name>
<message>
<location filename="../AuthenticationTextInput.qml" line="19"/>
<source>Test</source>
<translation>Test</translation>
</message>
</context>
<context>
<name>Footer</name>
<message>
<location filename="../Footer.qml" line="29"/>
<source>Cancel</source>
<translation>Stornieren</translation>
</message>
<message>
<location filename="../Footer.qml" line="46"/>
<source>Confirm</source>
<translation>Bestätigen</translation>
</message>
</context>
<context>
<name>Header</name>
<message>
<location filename="../Header.qml" line="30"/>
<source>Electric charging station</source>
<translation>Elektrofahrzeug-Ladestation</translation>
</message>
</context>
<context>
<name>InfoSpinBoxes</name>
<message>
<location filename="../InfoSpinBoxes.qml" line="130"/>
<source>Charging Rate</source>
<translation>Aufladungsrate</translation>
</message>
</context>
<context>
<name>PadType</name>
<message>
<location filename="../PadType.qml" line="114"/>
<source>Cancel</source>
<translation>Stornieren</translation>
</message>
<message>
<location filename="../PadType.qml" line="124"/>
<source>Correct</source>
<translation>Richtig</translation>
</message>
<message>
<location filename="../PadType.qml" line="134"/>
<source>Help</source>
<translation>Hilfe</translation>
</message>
<message>
<location filename="../PadType.qml" line="143"/>
<source>Enter</source>
<translation>Eingeben</translation>
</message>
</context>
<context>
<name>PageAuthentication</name>
<message>
<location filename="../PageAuthentication.qml" line="30"/>
<source>Username:</source>
<translation>Benutzername:</translation>
</message>
<message>
<location filename="../PageAuthentication.qml" line="43"/>
<source>Password:</source>
<translation>Passwort:</translation>
</message>
<message>
<location filename="../PageAuthentication.qml" line="65"/>
<source>USER AUTHENTICATION</source>
<translation>BENUTZERAUTHENTIFIZIERUNG</translation>
</message>
</context>
<context>
<name>PageChargeSelect</name>
<message>
<location filename="../PageChargeSelect.qml" line="43"/>
<source>Select charging level</source>
<translation>Wählen Sie die Ladestufe</translation>
</message>
</context>
<context>
<name>PageCharging</name>
<message>
<location filename="../PageCharging.qml" line="12"/>
<source>Charging</source>
<translation>Aufladung</translation>
</message>
<message>
<location filename="../PageCharging.qml" line="47"/>
<source>Charging in progress</source>
<translation>Aufladung läuft</translation>
</message>
<message>
<location filename="../PageCharging.qml" line="72"/>
<source>Charging Complete</source>
<translation>Aufladung komplett</translation>
</message>
</context>
<context>
<name>PagePayment</name>
<message>
<location filename="../PagePayment.qml" line="21"/>
<source>Payment method</source>
<translation>Bezahlverfahren</translation>
</message>
<message>
<location filename="../PagePayment.qml" line="38"/>
<source>Enter PIN-number:</source>
<translation>PIN-Nummer eingeben:</translation>
</message>
</context>
<context>
<name>PagePromotionSpot</name>
<message>
<location filename="../PagePromotionSpot.qml" line="40"/>
<source>TAP TO START</source>
<translation>TIPPE, UM ZU STARTEN</translation>
</message>
</context>
<context>
<name>PaymentType</name>
<message>
<location filename="../PaymentType.qml" line="65"/>
<source>Total cost</source>
<translation>Gesamtkosten</translation>
</message>
</context>
<context>
<name>PopupInfo</name>
<message>
<location filename="../PopupInfo.qml" line="23"/>
<source>Please tap to start for entering your credentials and start charging your car</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../PopupInfo.qml" line="24"/>
<source>Please enter your credential in the system</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../PopupInfo.qml" line="25"/>
<source>Please set the charge that you want achieve using the rotational Knob</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../PopupInfo.qml" line="26"/>
<source>Please add your pin number in order to start the charge</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../PopupInfo.qml" line="27"/>
<source>Charging information status</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>main</name>
<message>
<location filename="../main.qml" line="12"/>
<source>Electric Vehicle Charging Station</source>
<translation>Elektrofahrzeug-Ladestation</translation>
</message>
<message>
<location filename="../main.qml" line="98"/>
<source>Cancel</source>
<translation>Stornieren</translation>
</message>
<message>
<location filename="../main.qml" line="99"/>
<location filename="../main.qml" line="104"/>
<source>Confirm</source>
<translation>Bestätigen</translation>
</message>
<message>
<location filename="../main.qml" line="103"/>
<location filename="../main.qml" line="108"/>
<source>Back</source>
<translation>Zurück</translation>
</message>
<message>
<location filename="../main.qml" line="109"/>
<source>Continue</source>
<translation>Fortsetzen</translation>
</message>
<message>
<location filename="../main.qml" line="113"/>
<source>Done</source>
<translation>Erledigt</translation>
</message>
</context>
</TS>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context>
<name>AuthenticationTextInput</name>
<message>
<location filename="../AuthenticationTextInput.qml" line="19"/>
<source>Test</source>
<translation>Test</translation>
</message>
</context>
<context>
<name>Footer</name>
<message>
<location filename="../Footer.qml" line="29"/>
<source>Cancel</source>
<translation>Cancel</translation>
</message>
<message>
<location filename="../Footer.qml" line="46"/>
<source>Confirm</source>
<translation>Confirm</translation>
</message>
</context>
<context>
<name>Header</name>
<message>
<location filename="../Header.qml" line="30"/>
<source>Electric charging station</source>
<translation>Electric Vehicle Charging Station</translation>
</message>
</context>
<context>
<name>InfoSpinBoxes</name>
<message>
<location filename="../InfoSpinBoxes.qml" line="130"/>
<source>Charging Rate</source>
<translation>Charging Rate</translation>
</message>
</context>
<context>
<name>PadType</name>
<message>
<location filename="../PadType.qml" line="114"/>
<source>Cancel</source>
<translation>Cancel</translation>
</message>
<message>
<location filename="../PadType.qml" line="124"/>
<source>Correct</source>
<translation>Correct</translation>
</message>
<message>
<location filename="../PadType.qml" line="134"/>
<source>Help</source>
<translation></translation>
</message>
<message>
<location filename="../PadType.qml" line="143"/>
<source>Enter</source>
<translation>Enter</translation>
</message>
</context>
<context>
<name>PageAuthentication</name>
<message>
<location filename="../PageAuthentication.qml" line="30"/>
<source>Username:</source>
<translation>Username:</translation>
</message>
<message>
<location filename="../PageAuthentication.qml" line="43"/>
<source>Password:</source>
<translation>Password:</translation>
</message>
<message>
<location filename="../PageAuthentication.qml" line="65"/>
<source>USER AUTHENTICATION</source>
<translation>USER AUTHENTICATION</translation>
</message>
</context>
<context>
<name>PageChargeSelect</name>
<message>
<location filename="../PageChargeSelect.qml" line="43"/>
<source>Select charging level</source>
<translation></translation>
</message>
</context>
<context>
<name>PageCharging</name>
<message>
<location filename="../PageCharging.qml" line="12"/>
<source>Charging</source>
<translation>Charging</translation>
</message>
<message>
<location filename="../PageCharging.qml" line="47"/>
<source>Charging in progress</source>
<translation>Charging in progress</translation>
</message>
<message>
<location filename="../PageCharging.qml" line="72"/>
<source>Charging Complete</source>
<translation>Charging Complete</translation>
</message>
</context>
<context>
<name>PagePayment</name>
<message>
<location filename="../PagePayment.qml" line="21"/>
<source>Payment method</source>
<translation>Payment method</translation>
</message>
<message>
<location filename="../PagePayment.qml" line="38"/>
<source>Enter PIN-number:</source>
<translation>Enter PIN-number:</translation>
</message>
</context>
<context>
<name>PagePromotionSpot</name>
<message>
<location filename="../PagePromotionSpot.qml" line="40"/>
<source>TAP TO START</source>
<translation>TAP TO START</translation>
</message>
</context>
<context>
<name>PaymentType</name>
<message>
<location filename="../PaymentType.qml" line="65"/>
<source>Total cost</source>
<translation>Total cost</translation>
</message>
</context>
<context>
<name>PopupInfo</name>
<message>
<location filename="../PopupInfo.qml" line="23"/>
<source>Please tap to start for entering your credentials and start charging your car</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../PopupInfo.qml" line="24"/>
<source>Please enter your credential in the system</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../PopupInfo.qml" line="25"/>
<source>Please set the charge that you want achieve using the rotational Knob</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../PopupInfo.qml" line="26"/>
<source>Please add your pin number in order to start the charge</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../PopupInfo.qml" line="27"/>
<source>Charging information status</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>main</name>
<message>
<location filename="../main.qml" line="12"/>
<source>Electric Vehicle Charging Station</source>
<translation>Electric Vehicle Charging Station</translation>
</message>
<message>
<location filename="../main.qml" line="98"/>
<source>Cancel</source>
<translation>Cancel</translation>
</message>
<message>
<location filename="../main.qml" line="99"/>
<location filename="../main.qml" line="104"/>
<source>Confirm</source>
<translation>Confirm</translation>
</message>
<message>
<location filename="../main.qml" line="103"/>
<location filename="../main.qml" line="108"/>
<source>Back</source>
<translation>Back</translation>
</message>
<message>
<location filename="../main.qml" line="109"/>
<source>Continue</source>
<translation>Continue</translation>
</message>
<message>
<location filename="../main.qml" line="113"/>
<source>Done</source>
<translation>Done</translation>
</message>
</context>
</TS>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="fr_FR">
<context>
<name>AuthenticationTextInput</name>
<message>
<location filename="../AuthenticationTextInput.qml" line="19"/>
<source>Test</source>
<translation>Test</translation>
</message>
</context>
<context>
<name>Footer</name>
<message>
<location filename="../Footer.qml" line="29"/>
<source>Cancel</source>
<translation>Annuler</translation>
</message>
<message>
<location filename="../Footer.qml" line="46"/>
<source>Confirm</source>
<translation>Confirmer</translation>
</message>
</context>
<context>
<name>Header</name>
<message>
<location filename="../Header.qml" line="30"/>
<source>Electric charging station</source>
<translation>Borne de recharge pour voitures électriques</translation>
</message>
</context>
<context>
<name>InfoSpinBoxes</name>
<message>
<location filename="../InfoSpinBoxes.qml" line="130"/>
<source>Charging Rate</source>
<translation>Taux de charge</translation>
</message>
</context>
<context>
<name>PadType</name>
<message>
<location filename="../PadType.qml" line="114"/>
<source>Cancel</source>
<translation>Annuler</translation>
</message>
<message>
<location filename="../PadType.qml" line="124"/>
<source>Correct</source>
<translation>Correct</translation>
</message>
<message>
<location filename="../PadType.qml" line="134"/>
<source>Help</source>
<translation>Aidez</translation>
</message>
<message>
<location filename="../PadType.qml" line="143"/>
<source>Enter</source>
<translation>Confirmer</translation>
</message>
</context>
<context>
<name>PageAuthentication</name>
<message>
<location filename="../PageAuthentication.qml" line="30"/>
<source>Username:</source>
<translation>Nom d&apos;utilisateur:</translation>
</message>
<message>
<location filename="../PageAuthentication.qml" line="43"/>
<source>Password:</source>
<translation>Mot de passe:</translation>
</message>
<message>
<location filename="../PageAuthentication.qml" line="65"/>
<source>USER AUTHENTICATION</source>
<translation>AUTHENTIFICATION D&apos;UTILISATEUR</translation>
</message>
</context>
<context>
<name>PageChargeSelect</name>
<message>
<location filename="../PageChargeSelect.qml" line="43"/>
<source>Select charging level</source>
<translation>Sélectionnez le niveau de charge</translation>
</message>
</context>
<context>
<name>PageCharging</name>
<message>
<location filename="../PageCharging.qml" line="12"/>
<source>Charging</source>
<translation>Chargement</translation>
</message>
<message>
<location filename="../PageCharging.qml" line="47"/>
<source>Charging in progress</source>
<translation>Chargement en cours</translation>
</message>
<message>
<location filename="../PageCharging.qml" line="72"/>
<source>Charging Complete</source>
<translation>Chargement complet</translation>
</message>
</context>
<context>
<name>PagePayment</name>
<message>
<location filename="../PagePayment.qml" line="21"/>
<source>Payment method</source>
<translation>Mode de paiement</translation>
</message>
<message>
<location filename="../PagePayment.qml" line="38"/>
<source>Enter PIN-number:</source>
<translation>Entrez le numéro PIN:</translation>
</message>
</context>
<context>
<name>PagePromotionSpot</name>
<message>
<location filename="../PagePromotionSpot.qml" line="40"/>
<source>TAP TO START</source>
<translation>APPUYEZ POUR COMMENCER</translation>
</message>
</context>
<context>
<name>PaymentType</name>
<message>
<location filename="../PaymentType.qml" line="65"/>
<source>Total cost</source>
<translation>Coût total</translation>
</message>
</context>
<context>
<name>PopupInfo</name>
<message>
<location filename="../PopupInfo.qml" line="23"/>
<source>Please tap to start for entering your credentials and start charging your car</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../PopupInfo.qml" line="24"/>
<source>Please enter your credential in the system</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../PopupInfo.qml" line="25"/>
<source>Please set the charge that you want achieve using the rotational Knob</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../PopupInfo.qml" line="26"/>
<source>Please add your pin number in order to start the charge</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../PopupInfo.qml" line="27"/>
<source>Charging information status</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>main</name>
<message>
<location filename="../main.qml" line="12"/>
<source>Electric Vehicle Charging Station</source>
<translation>Borne de recharge pour voitures électriques</translation>
</message>
<message>
<location filename="../main.qml" line="98"/>
<source>Cancel</source>
<translation>Annuler</translation>
</message>
<message>
<location filename="../main.qml" line="99"/>
<location filename="../main.qml" line="104"/>
<source>Confirm</source>
<translation>Confirmer</translation>
</message>
<message>
<location filename="../main.qml" line="103"/>
<location filename="../main.qml" line="108"/>
<source>Back</source>
<translation>Arrière</translation>
</message>
<message>
<location filename="../main.qml" line="109"/>
<source>Continue</source>
<translation>Continuer</translation>
</message>
<message>
<location filename="../main.qml" line="113"/>
<source>Done</source>
<translation>Terminé</translation>
</message>
</context>
</TS>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="it_IT">
<context>
<name>AuthenticationTextInput</name>
<message>
<location filename="../AuthenticationTextInput.qml" line="19"/>
<source>Test</source>
<translation>Test</translation>
</message>
</context>
<context>
<name>Footer</name>
<message>
<location filename="../Footer.qml" line="29"/>
<source>Cancel</source>
<translation>Annulla</translation>
</message>
<message>
<location filename="../Footer.qml" line="46"/>
<source>Confirm</source>
<translation>Conferma</translation>
</message>
</context>
<context>
<name>Header</name>
<message>
<location filename="../Header.qml" line="30"/>
<source>Electric charging station</source>
<translation>Stazione di ricarica per veicoli elettrici</translation>
</message>
</context>
<context>
<name>InfoSpinBoxes</name>
<message>
<location filename="../InfoSpinBoxes.qml" line="130"/>
<source>Charging Rate</source>
<translation>Tariffazione</translation>
</message>
</context>
<context>
<name>PadType</name>
<message>
<location filename="../PadType.qml" line="114"/>
<source>Cancel</source>
<translation>Annulla</translation>
</message>
<message>
<location filename="../PadType.qml" line="124"/>
<source>Correct</source>
<translation>Corretta</translation>