diff options
author | segwon <segwon.han@samsung.com> | 2016-10-14 20:31:44 +0900 |
---|---|---|
committer | segwon <segwon.han@samsung.com> | 2016-10-17 11:53:46 +0900 |
commit | bd6f9a09f0d34f71093eca5d1da254ab5605bd07 (patch) | |
tree | caacc6708758574844a8718379bcbd726d65cd83 /src | |
parent | 5a37487acf61d1c2401b0d8c94972c458b13fe7f (diff) | |
download | d2d-conv-setting-bd6f9a09f0d34f71093eca5d1da254ab5605bd07.tar.gz d2d-conv-setting-bd6f9a09f0d34f71093eca5d1da254ab5605bd07.tar.bz2 d2d-conv-setting-bd6f9a09f0d34f71093eca5d1da254ab5605bd07.zip |
Modified the Application text change as changed the setting language.(only en-US, ko-KR)submit/tizen_3.0/20161114.090327submit/tizen_3.0/20161111.014110submit/tizen_3.0/20161110.072612submit/tizen/20161111.015320submit/tizen/20161110.072951accepted/tizen/mobile/20161114.004010accepted/tizen/mobile/20161111.001955
Signed-off-by: segwon <segwon.han@samsung.com>
Change-Id: I58dd252fcbda8cf7c33ee75674fceac4321cf611
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/setting_home.c | 25 | ||||
-rw-r--r-- | src/ui/setting_item_sign.c | 13 |
2 files changed, 36 insertions, 2 deletions
diff --git a/src/ui/setting_home.c b/src/ui/setting_home.c index 9c35e64..9c5c1fb 100644 --- a/src/ui/setting_home.c +++ b/src/ui/setting_home.c @@ -23,8 +23,33 @@ static Eina_Bool setting_menu_pop_cb(void *data, Elm_Object_Item *it) return EINA_FALSE; } +static void app_language_changed(app_event_info_h event_info, void *user_data) +{ + char *language; + + int ret = app_event_get_language(event_info, &language); + if (ret != APP_ERROR_NONE) { + dlog_print(DLOG_ERROR, LOG_TAG, "app_event_get_language() failed. Err = %d.", ret); + return; + } + + dlog_print(DLOG_ERROR, LOG_TAG, "language = %s.", language); + + if (language != NULL) { + elm_language_set(language); + free(language); + } + + dlog_print(DLOG_ERROR, LOG_TAG, "language = %s.", language); + + state_change_event(CHANGE_LANGUAGE); +} + extern void create_setting_menu(Evas_Object *parent) { + app_event_handler_h handle = NULL; + ui_app_add_event_handler(&handle, APP_EVENT_LANGUAGE_CHANGED, app_language_changed, NULL); + Evas_Object *background = elm_bg_add(parent); elm_object_content_set(parent, background); elm_bg_color_set(background, 255, 255, 255); diff --git a/src/ui/setting_item_sign.c b/src/ui/setting_item_sign.c index cd07485..3356d85 100644 --- a/src/ui/setting_item_sign.c +++ b/src/ui/setting_item_sign.c @@ -8,12 +8,21 @@ static void state_change_event_listener (state_e state) switch (state) { case POWER_ON : - notice = "Now, you can experience a various Convergence features! Please be aware that a remote device can launch an application in your device or access a data in your application. A notice will be poped up when your device is accessed by the remote devices. You can disable this feature by touch the button again."; + notice = POWER_ON_SIGN_TEXT; elm_genlist_realized_items_update(sign_item); break; case POWER_OFF : - notice = "You can experience a various Convergence features, if you enable Tizen Convergence feature - an application in a different device can be launched remotely, or a communication between applications in different devices is supported. Please be aware that a remote device can launch an application in your device or access a data in your application. A notice will be poped up when your device is accessed by the remote devices."; + notice = POWER_OFF_SIGN_TEXT; + elm_genlist_realized_items_update(sign_item); + break; + + case CHANGE_LANGUAGE : + if (get_convergence_power_state() == 1) { + notice = POWER_ON_SIGN_TEXT; + } else { + notice = POWER_OFF_SIGN_TEXT; + } elm_genlist_realized_items_update(sign_item); break; |