Move function call position 88/163188/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 7 Dec 2017 23:51:54 +0000 (08:51 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 7 Dec 2017 23:55:54 +0000 (08:55 +0900)
After adding the event callbacks, setting i18n and verifying language
functions are called.

Change-Id: I3b6c211e220c90b9dd90f706c78e761c5aba7051
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/base/appcore_base.c

index b0820a6..ca9c79c 100644 (file)
@@ -960,10 +960,6 @@ EXPORT_API int appcore_base_init(appcore_base_ops ops, int argc, char **argv, vo
        if (__context.ops.init)
                __context.ops.init(argc, argv, data);
 
-       __verify_language();
-       if (__context.ops.set_i18n)
-               __context.ops.set_i18n(__context.data);
-
        if (TIZEN_FEATURE_BACKGROUND_MANAGEMENT)
                __init_suspend_dbus_handler();
 
@@ -978,6 +974,10 @@ EXPORT_API int appcore_base_init(appcore_base_ops ops, int argc, char **argv, vo
                }
        }
 
+       __verify_language();
+       if (__context.ops.set_i18n)
+               __context.ops.set_i18n(__context.data);
+
        if (__context.ops.create) {
                traceBegin(TTRACE_TAG_APPLICATION_MANAGER, "APPCORE:CREATE");
                r = __context.ops.create(__context.data);