Update base lang when default base lang doesn't exist 66/152266/1
authorWonnam Jang <wn.jang@samsung.com>
Mon, 25 Sep 2017 02:58:47 +0000 (11:58 +0900)
committerWonnam Jang <wn.jang@samsung.com>
Mon, 25 Sep 2017 11:05:32 +0000 (11:05 +0000)
Change-Id: I73e2a32b45aea3fde910239f917330c6e82a02de
Signed-off-by: Wonnam Jang <wn.jang@samsung.com>
(cherry picked from commit d28bca88cf08821cb6e98e791074cbb083246114)

common/vc_config_mgr.c

index 246d842..a85b57f 100755 (executable)
@@ -263,6 +263,10 @@ int __vc_config_mgr_select_lang(const char* engine_id, char** language)
                        }
 
                        /* Not support base language */
+                       iter_lang = g_slist_nth(engine_info->languages, 0);
+                       if (NULL != iter_lang)
+                               engine_lang = iter_lang->data;
+
                        if (NULL != engine_lang) {
                                *language = strdup(engine_lang);
                                SLOG(LOG_DEBUG, vc_config_tag(), "Selected language : %s", *language);