|
|
@ -93,9 +93,9 @@ ApplicationWindow {
|
|
|
|
text: qsTr("English")
|
|
|
|
text: qsTr("English")
|
|
|
|
checkable: true
|
|
|
|
checkable: true
|
|
|
|
exclusiveGroup: languageSettingsGroup
|
|
|
|
exclusiveGroup: languageSettingsGroup
|
|
|
|
checked: settings.value("language", "en_US") === "en_US" ? true : false
|
|
|
|
checked: settings.value("language") === "en_US" ? true : false
|
|
|
|
onTriggered: {
|
|
|
|
onTriggered: {
|
|
|
|
if (settings.value("language", "en_US") !== "en_US") {
|
|
|
|
if (settings.value("language") !== "en_US") {
|
|
|
|
settings.setValue("language", "en_US");
|
|
|
|
settings.setValue("language", "en_US");
|
|
|
|
changeLanguageDialog.open();
|
|
|
|
changeLanguageDialog.open();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -105,9 +105,9 @@ ApplicationWindow {
|
|
|
|
text: qsTr("Simplified Chinese")
|
|
|
|
text: qsTr("Simplified Chinese")
|
|
|
|
checkable: true
|
|
|
|
checkable: true
|
|
|
|
exclusiveGroup: languageSettingsGroup
|
|
|
|
exclusiveGroup: languageSettingsGroup
|
|
|
|
checked: settings.value("language", "en_US") === "zh_CN" ? true : false
|
|
|
|
checked: settings.value("language") === "zh_CN" ? true : false
|
|
|
|
onTriggered: {
|
|
|
|
onTriggered: {
|
|
|
|
if (settings.value("language", "en_US") !== "zh_CN") {
|
|
|
|
if (settings.value("language") !== "zh_CN") {
|
|
|
|
settings.setValue("language", "zh_CN");
|
|
|
|
settings.setValue("language", "zh_CN");
|
|
|
|
changeLanguageDialog.open();
|
|
|
|
changeLanguageDialog.open();
|
|
|
|
}
|
|
|
|
}
|
|
|
|