pmaports/luna/luna-firstuse/locale.patch
Alex Roth 04d73a5824 Add packages and configuration changes to allow Luna to start in QEMU (#1016)
* Added a lot more Luna packages. It is now possible to start Luna, complete the first use app, and use the system. ARM support still broken.
* Cleanup & testing fixes. Starting in a fresh qemu environment works, but isn't quite deterministic. See wiki page for details
2017-12-17 18:25:59 +00:00

17 lines
796 B
Diff

diff --git a/qml/LocalePage.qml b/qml/LocalePage.qml
index 68249d2..1967525 100644
--- a/qml/LocalePage.qml
+++ b/qml/LocalePage.qml
@@ -79,6 +79,12 @@ BasePage {
currentLocale = response.locale;
console.log("Current locale " + JSON.stringify(currentLocale));
}
+ else {
+ currentLocale = {
+ languageCode: 'un',
+ countryCode: 'un'
+ }
+ }
// now we can fetch all possible values and setup our model
service.call("luna://com.palm.systemservice/getPreferenceValues", JSON.stringify({key: "locale"}), fetchLocalesSuccess, fetchLocalesFailure);