status-desktop/ui/app/AppLayouts/Profile/Sections/LanguageContainer.qml

39 lines
1.0 KiB
QML
Raw Normal View History

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"
import "../../../../shared"
2021-03-24 16:28:59 +00:00
import "../../../../shared/status"
import "./Data/locales.js" as Locales_JSON
2020-05-27 21:28:25 +00:00
Item {
id: languageContainer
Layout.fillHeight: true
Layout.fillWidth: true
clip: true
2020-05-27 21:28:25 +00:00
2021-03-24 16:28:59 +00:00
property Component languagePopup: LanguageModal {}
Item {
2021-03-24 16:28:59 +00:00
anchors.top: parent.top
anchors.topMargin: topMargin
anchors.bottom: parent.bottom
width: profileContainer.profileContentWidth
anchors.horizontalCenter: parent.horizontalCenter
2021-03-24 16:28:59 +00:00
Column {
id: generalColumn
width: parent.width
StatusSettingsLineButton {
//% "Language"
text: qsTrId("language")
2021-03-24 16:28:59 +00:00
//% "Default"
currentValue: globalSettings.locale === "" ? qsTrId("default") : globalSettings.locale
2021-03-24 16:28:59 +00:00
onClicked: languagePopup.createObject(languageContainer).open()
}
}
}
2020-05-27 21:28:25 +00:00
}