@@ -61,6 +61,21 @@ LocalComponents.Page {
64+ function applyOSKSettings(locale) {
65+ var language = locale.split("_")[0].split(".")[0];
66+ var oskLanguage = language;
68+ if (language === "zh") { // special case for Chinese, select either simplified or traditional
69+ if (locale.substr(0, 5) === "zh_CN" || locale.substr(0,5) === "zh_SG") {
70+ oskLanguage = "zh-hans"; // Chinese Simplified
72+ oskLanguage = "zh-hant"; // Chinese Traditional
76+ oskPlugin.setCurrentLayout(oskLanguage);
64 // splash screen (this has to be on the first page)
79 // splash screen (this has to be on the first page)
66 id: splashImage
81 id: splashImage
@@ -158,9 +173,8 @@ LocalComponents.Page {
158 onClicked: {
173 onClicked: {
159 if (plugin.currentLanguage !== languagesListView.currentIndex) {
174 if (plugin.currentLanguage !== languagesListView.currentIndex) {
160 var locale = plugin.languageCodes[languagesListView.currentIndex];
175 var locale = plugin.languageCodes[languagesListView.currentIndex];
161− var language = locale.split("_")[0].split(".")[0];
162 plugin.currentLanguage = languagesListView.currentIndex;
176 plugin.currentLanguage = languagesListView.currentIndex;
163− oskPlugin.setCurrentLayout(language);
177+ applyOSKSettings(locale);
164 System.updateSessionLocale(locale);
178 System.updateSessionLocale(locale);
166 i18n.language = plugin.languageCodes[plugin.currentLanguage]; // re-notify of change after above call (for qlocale change)
180 i18n.language = plugin.languageCodes[plugin.currentLanguage]; // re-notify of change after above call (for qlocale change)
@@ -169,8 +183,7 @@ LocalComponents.Page {
169 (root.simManager0.present && root.simManager0.ready) || (root.simManager1.present && root.simManager1.ready) ||
183 (root.simManager0.present && root.simManager0.ready) || (root.simManager1.present && root.simManager1.ready) ||
170 root.seenSIMPage) { // go to next page
184 root.seenSIMPage) { // go to next page
171 pageStack.next();
185 pageStack.next();
174 pageStack.load(Qt.resolvedUrl("sim.qml")); // show the SIM page
187 pageStack.load(Qt.resolvedUrl("sim.qml")); // show the SIM page