Fix i18n issue in IME 25/193625/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 22 Nov 2018 09:35:07 +0000 (18:35 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 22 Nov 2018 09:53:08 +0000 (18:53 +0900)
Change-Id: I24eb5dcaba083600c4c37c4de182b19d5097ada6
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/sclcoreui-efl.cpp

index 15ce472..e084b35 100644 (file)
@@ -165,6 +165,12 @@ static int language_changed_cb(void *event_info, void* data)
     }
     LOGD("current language is %s\n", clang);
 
+    setenv("LC_ALL", clang, 1);
+    char *r = setlocale(LC_ALL, "");
+    if (r == NULL) {
+        setlocale(LC_ALL, "en_US.UTF-8");
+    }
+
     CSCLCoreImpl *impl = CSCLCoreImpl::get_instance();
     if (impl) {
         ISCLCoreEventCallback *callback = impl->get_core_event_callback();