|
|
@ -90,7 +90,7 @@ ApplicationWindow {
|
|
|
|
Menu {
|
|
|
|
Menu {
|
|
|
|
title: qsTr("Language")
|
|
|
|
title: qsTr("Language")
|
|
|
|
MenuItem {
|
|
|
|
MenuItem {
|
|
|
|
text: qsTr("English")
|
|
|
|
text: "English"
|
|
|
|
checkable: true
|
|
|
|
checkable: true
|
|
|
|
exclusiveGroup: languageSettingsGroup
|
|
|
|
exclusiveGroup: languageSettingsGroup
|
|
|
|
checked: settings.value("language") === "en_US" ? true : false
|
|
|
|
checked: settings.value("language") === "en_US" ? true : false
|
|
|
@ -102,25 +102,25 @@ ApplicationWindow {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
MenuItem {
|
|
|
|
MenuItem {
|
|
|
|
text: qsTr("Russian")
|
|
|
|
text: "简体中文"
|
|
|
|
checkable: true
|
|
|
|
checkable: true
|
|
|
|
exclusiveGroup: languageSettingsGroup
|
|
|
|
exclusiveGroup: languageSettingsGroup
|
|
|
|
checked: settings.value("language") === "ru_RU" ? true : false
|
|
|
|
checked: settings.value("language") === "zh_CN" ? true : false
|
|
|
|
onTriggered: {
|
|
|
|
onTriggered: {
|
|
|
|
if (settings.value("language") !== "ru_RU") {
|
|
|
|
if (settings.value("language") !== "zh_CN") {
|
|
|
|
settings.setValue("language", "ru_RU");
|
|
|
|
settings.setValue("language", "zh_CN");
|
|
|
|
changeLanguageDialog.open();
|
|
|
|
changeLanguageDialog.open();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
MenuItem {
|
|
|
|
MenuItem {
|
|
|
|
text: qsTr("Simplified Chinese")
|
|
|
|
text: "Русский"
|
|
|
|
checkable: true
|
|
|
|
checkable: true
|
|
|
|
exclusiveGroup: languageSettingsGroup
|
|
|
|
exclusiveGroup: languageSettingsGroup
|
|
|
|
checked: settings.value("language") === "zh_CN" ? true : false
|
|
|
|
checked: settings.value("language") === "ru_RU" ? true : false
|
|
|
|
onTriggered: {
|
|
|
|
onTriggered: {
|
|
|
|
if (settings.value("language") !== "zh_CN") {
|
|
|
|
if (settings.value("language") !== "ru_RU") {
|
|
|
|
settings.setValue("language", "zh_CN");
|
|
|
|
settings.setValue("language", "ru_RU");
|
|
|
|
changeLanguageDialog.open();
|
|
|
|
changeLanguageDialog.open();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|