do not translate the language names

master
Qiaoyong Zhong 11 years ago
parent 7517dfa40b
commit caf3ffd4f9

@ -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();
} }
} }

Binary file not shown.

@ -60,19 +60,12 @@
<translation>Язык</translation> <translation>Язык</translation>
</message> </message>
<message> <message>
<location filename="../qml/main.qml" line="93"/>
<source>English</source> <source>English</source>
<translation>Английский</translation> <translation type="vanished">Английский</translation>
</message> </message>
<message> <message>
<location filename="../qml/main.qml" line="105"/>
<source>Simplified Chinese</source> <source>Simplified Chinese</source>
<translation>Упрощённый китайский</translation> <translation type="vanished">Упрощённый китайский</translation>
</message>
<message>
<location filename="../qml/main.qml" line="117"/>
<source>Russian</source>
<translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/main.qml" line="133"/> <location filename="../qml/main.qml" line="133"/>

Binary file not shown.

@ -60,19 +60,16 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../qml/main.qml" line="93"/>
<source>English</source> <source>English</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/main.qml" line="105"/>
<source>Simplified Chinese</source> <source>Simplified Chinese</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/main.qml" line="117"/>
<source>Russian</source> <source>Russian</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/main.qml" line="133"/> <location filename="../qml/main.qml" line="133"/>

Loading…
Cancel
Save