2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2020-05-27 21:28:25 +00:00
|
|
|
import "../../../../imports"
|
2020-06-19 18:06:58 +00:00
|
|
|
import "../../../../shared"
|
2021-03-24 16:28:59 +00:00
|
|
|
import "../../../../shared/status"
|
2020-07-21 21:03:22 +00:00
|
|
|
import "./Data/locales.js" as Locales_JSON
|
2020-05-27 21:28:25 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: languageContainer
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
2021-03-24 16:28:59 +00:00
|
|
|
property Component languagePopup: LanguageModal {}
|
|
|
|
|
2021-03-18 09:33:39 +00:00
|
|
|
Item {
|
2021-03-24 16:28:59 +00:00
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: topMargin
|
|
|
|
anchors.bottom: parent.bottom
|
2021-03-18 09:33:39 +00:00
|
|
|
width: contentMaxWidth
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2020-07-30 05:18:54 +00:00
|
|
|
|
2021-03-24 16:28:59 +00:00
|
|
|
Column {
|
|
|
|
id: generalColumn
|
|
|
|
width: parent.width
|
|
|
|
|
|
|
|
StatusSettingsLineButton {
|
2021-03-18 09:33:39 +00:00
|
|
|
//% "Language"
|
|
|
|
text: qsTrId("language")
|
2021-03-24 16:28:59 +00:00
|
|
|
//% "Default"
|
|
|
|
currentValue: appSettings.locale === "" ? qsTrId("default") : appSettings.locale
|
|
|
|
onClicked: languagePopup.createObject(languageContainer).open()
|
2020-07-30 05:18:54 +00:00
|
|
|
}
|
2020-07-21 21:03:22 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-27 21:28:25 +00:00
|
|
|
}
|