Fix issue that showed wrong discard message popup for voice input
[platform/core/uifw/inputdelegator.git] / src / MoreOption.cpp
index 51089c1..2fb53c9 100755 (executable)
@@ -99,17 +99,22 @@ static void show_discard_popup(void *data)
        Evas_Object *icon = NULL;
 
        std::string path = get_resource_path();
+       if (_WEARABLE)
+               path = path + "wearable/";
+       else if (_TV)
+               path = path + "tv/";
+       else
+               path = path + "mobile/";
 
        popup = elm_popup_add(voicedata->naviframe);
        elm_object_style_set(popup, "circle");
-//     uxt_popup_set_rotary_event_enabled(popup, EINA_TRUE);
        eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, popup_hide_cb, NULL);
        evas_object_smart_callback_add(popup, "dismissed", popup_hide_finished_cb, NULL);
        evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
 
        layout = elm_layout_add(popup);
        elm_layout_theme_set(layout, "layout", "popup", "content/circle/buttons2");
-       elm_object_domain_translatable_part_text_set(layout, "elm.text", PACKAGE, "IDS_ST_SK_OK");
+       elm_object_domain_translatable_part_text_set(layout, "elm.text", PACKAGE, "WDS_WNOTI_POP_ALL_CHANGES_WILL_BE_DISCARDED");
        elm_object_content_set(popup, layout);
        evas_object_show(layout);