X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=app%2FHVAC.qml;h=7710589484873793d24c248efc05336c01aea956;hb=8363df0356c20c92f6dae175b3c8b83b1032e6ff;hp=0d60cbdc3cee6e3068efaa9ca58aa84bd7222964;hpb=559d1a3272a6dbf87139cc3a77beaddfc5f66b63;p=apps%2Fhvac.git diff --git a/app/HVAC.qml b/app/HVAC.qml index 0d60cbd..7710589 100644 --- a/app/HVAC.qml +++ b/app/HVAC.qml @@ -18,11 +18,17 @@ import QtQuick 2.6 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 import AGL.Demo.Controls 1.0 +import Translator 1.0 import 'api' as API ApplicationWindow { id: root + Translator { + id: translator + language: 'en_US' + } + API.Binding { id: binding url: bindingAddress @@ -57,7 +63,7 @@ ApplicationWindow { anchors.left: fanSpeedSlider.left anchors.top: fanSpeedSlider.bottom font.pixelSize: 32 - text: 'FAN SPEED' + text: translator.translate(qsTr('FAN SPEED'), translator.language) } } } @@ -88,8 +94,8 @@ ApplicationWindow { offImage: './images/HMI_HVAC_Inactive.svg' Label { anchors.centerIn: parent - color: parent.checked ? '#66FF99' : '#848286' - text: 'A/C' + color: parent.checked ? '#00ADDC' : '#848286' + text: translator.translate(qsTr('A/C'), translator.language) font.pixelSize: parent.height / 3 } onCheckedChanged: { @@ -101,8 +107,8 @@ ApplicationWindow { offImage: './images/HMI_HVAC_Inactive.svg' Label { anchors.centerIn: parent - color: parent.checked ? '#66FF99' : '#848286' - text: 'AUTO' + color: parent.checked ? '#00ADDC' : '#848286' + text: translator.translate(qsTr('AUTO'), translator.language) font.pixelSize: parent.height / 3 } onCheckedChanged: {