cancel_button_ = elm_button_add(popup_);
elm_object_style_set(cancel_button_, "popup");
- elm_object_text_set(cancel_button_, "Cancel");
+ elm_object_text_set(cancel_button_, dgettext("sys_string", "IDS_COM_SK_CANCEL"));
elm_object_part_content_set(popup_, "button1", cancel_button_);
evas_object_smart_callback_add(cancel_button_, "clicked", CancelButtonHandlerForPrompt, this);
ok_button_ = elm_button_add(popup_);
elm_object_style_set(ok_button_, "popup");
- elm_object_text_set(ok_button_, "OK");
+ elm_object_text_set(ok_button_, dgettext("sys_string", "IDS_COM_SK_OK"));
elm_object_part_content_set(popup_, "button2", ok_button_);
evas_object_focus_set(ok_button_, true);
evas_object_smart_callback_add(ok_button_, "clicked", OkButtonHandlerForPrompt, this);
if (message_text_.c_str())
elm_object_part_text_set(popup_, "title,text", UTF16ToUTF8(message_text_).c_str());
+
+ std::string question(dgettext("WebKit", "IDS_WEBVIEW_POP_LEAVE_THIS_PAGE_Q"));
+
std::string message;
if (default_prompt_text_.c_str())
- message = std::string(UTF16ToUTF8(default_prompt_text_).c_str()) + std::string("\nLeave this page?");
+ message = std::string(UTF16ToUTF8(default_prompt_text_).c_str()) + std::string("\n") + question;
else
- message = std::string("Leave this page?");
+ message = question;
setLabelText(message.c_str());
cancel_button_ = elm_button_add(popup_);
elm_object_style_set(cancel_button_, "popup");
- elm_object_text_set(cancel_button_, "Leave");
+ elm_object_text_set(cancel_button_, dgettext("WebKit", "IDS_WEBVIEW_BUTTON_LEAVE"));
elm_object_part_content_set(popup_, "button1", cancel_button_);
evas_object_smart_callback_add(cancel_button_, "clicked", OkButtonHandlerForPrompt, this);
ok_button_ = elm_button_add(popup_);
elm_object_style_set(ok_button_, "popup");
- elm_object_text_set(ok_button_, "Stay");
+ elm_object_text_set(ok_button_, dgettext("WebKit", "IDS_WEBVIEW_BUTTON_STAY"));
elm_object_part_content_set(popup_, "button2", ok_button_);
evas_object_smart_callback_add(ok_button_, "clicked", CancelButtonHandlerForPrompt, this);
} else if (type_ == ALERT) {
ok_button_ = elm_button_add(popup_);
elm_object_style_set(ok_button_, "popup");
- elm_object_text_set(ok_button_, "OK");
+ elm_object_text_set(ok_button_, dgettext("sys_string", "IDS_COM_SK_OK"));
elm_object_part_content_set(popup_, "button1", ok_button_);
evas_object_smart_callback_add(ok_button_, "clicked", OkButtonHandlerForAlert, this);
cancel_button_ = elm_button_add(popup_);
elm_object_style_set(cancel_button_, "popup");
- elm_object_text_set(cancel_button_, "Cancel");
+ elm_object_text_set(cancel_button_, dgettext("sys_string", "IDS_COM_SK_CANCEL"));
elm_object_part_content_set(popup_, "button1", cancel_button_);
evas_object_smart_callback_add(cancel_button_, "clicked", CancelButtonHandlerForConfirm, this);
ok_button_ = elm_button_add(popup_);
elm_object_style_set(ok_button_, "popup");
- elm_object_text_set(ok_button_, "OK");
+ elm_object_text_set(ok_button_, dgettext("sys_string", "IDS_COM_SK_OK"));
elm_object_part_content_set(popup_, "button2", ok_button_);
evas_object_smart_callback_add(ok_button_, "clicked", OkButtonHandlerForConfirm, this);
}