msgstr "The applications below were started by %s. Stopping these applications may cause %s to fail."
msgid "IDS_ST_BODY_SOFTKEY"
-msgstr "Soft Keys"
\ No newline at end of file
+msgstr "Soft Keys"
+
+msgid "IDS_ST_BODY_RESET_INITIAL_CONFIGURATION"
+msgstr "Reset initial configuration"
+
+msgid "IDS_MSG_RESET_INITIAL_CONFIGURATION"
+msgstr "Initial configuration will be reset."
+
+msgid "IDS_MSG_FACTORY_RESET"
+msgstr "Factory reset will be performed."
+
+msgid "IDS_MSG_RESET_CANNOT_BE_UNDONE"
+msgstr "This action cannot be undone."
+
+msgid "IDS_ST_BODY_SHOW_NETWORK_STATUS_AND_OTHER_INFORMATION"
+msgstr "show network status and other information."
\ No newline at end of file
#include "setting-reset.h"
#include "controls/confirm-popup.h"
+#include <string.h>
+
+
+#define MAX_POPUPMSG 512
+
struct item {
const char *display_title;
setting_call_back_func select;
{ "Reset settings", setting_reset_settings_clicked, NULL},
{ "Reset network settings", setting_reset_network_clicked, NULL},
#endif
- { "Reset initial configuration", setting_reset_initial_config_clicked, NULL},
- { "Factory data reset", setting_reset_factory_reset_clicked, NULL},
+ { "IDS_ST_BODY_RESET_INITIAL_CONFIGURATION", setting_reset_initial_config_clicked, NULL},
+ { "IDS_ST_MBODY_FACTORY_RESET", setting_reset_factory_reset_clicked, NULL},
};
#else
const static struct item Item_AllReset;
const static struct item Item_NetworkReset;
#endif
-const static struct item Item_ConfigReset = { "Reset initial configuration", setting_reset_initial_config_clicked, NULL};
-const static struct item Item_FactoryReset = { "Factory data reset", setting_reset_factory_reset_clicked, NULL};
+const static struct item Item_ConfigReset = { "IDS_ST_BODY_RESET_INITIAL_CONFIGURATION", setting_reset_initial_config_clicked, NULL};
+const static struct item Item_FactoryReset = { "IDS_ST_MBODY_FACTORY_RESET", setting_reset_factory_reset_clicked, NULL};
#endif
{
Evas_Object *confirm_popup = confirm_popup_create(parent);
confirm_popup_title_set(confirm_popup, "Confirm Reset");
- confirm_popup_confirm_text_set(confirm_popup, "Reset");
- confirm_popup_reject_text_set(confirm_popup, "Cancel");
+ confirm_popup_confirm_text_set(confirm_popup, _("IDS_ST_BUTTON_RESET"));
+ confirm_popup_reject_text_set(confirm_popup, _("IDS_ST_BUTTON_CANCEL"));
return confirm_popup;
}
static void setting_reset_initial_config_clicked(void *data, Evas_Object *obj, void *event_info)
{
+ char popupmsg[MAX_POPUPMSG];
MainData *md = data;
Evas_Object *confirm_popup = _reset_confirm_popup_create(md->window);
- confirm_popup_text_set(confirm_popup, "<align=center>Initial configuration will be reset.<br>This action cannot be undone.</align>");
+ snprintf(popupmsg, MAX_POPUPMSG, "<align=center>%s<br>%s</align>",
+ _("IDS_MSG_RESET_INITIAL_CONFIGURATION"), _("IDS_MSG_RESET_CANNOT_BE_UNDONE"));
+ confirm_popup_text_set(confirm_popup, popupmsg);
evas_object_smart_callback_add(confirm_popup, "confirmed", _on_confirmed_reset_initial_config, NULL);
evas_object_smart_callback_add(confirm_popup, "rejected", _dismiss_popup, NULL);
elm_genlist_item_selected_set(event_info, EINA_FALSE);
static void setting_reset_factory_reset_clicked(void *data, Evas_Object *obj, void *event_info)
{
+ char popupmsg[MAX_POPUPMSG];
MainData *md = data;
Evas_Object *confirm_popup = _reset_confirm_popup_create(md->window);
- confirm_popup_text_set(confirm_popup, "<align=center>Factory reset will be performed.<br>This action cannot be undone.</align>");
+ snprintf(popupmsg, MAX_POPUPMSG, "<align=center>%s<br>%s</align>",
+ _("IDS_MSG_FACTORY_RESET"), _("IDS_MSG_RESET_CANNOT_BE_UNDONE"));
+ confirm_popup_text_set(confirm_popup, popupmsg);
evas_object_smart_callback_add(confirm_popup, "confirmed", _on_confirmed_factory_reset, NULL);
evas_object_smart_callback_add(confirm_popup, "rejected", _dismiss_popup, NULL);
elm_genlist_item_selected_set(event_info, EINA_FALSE);
(char*)it->icon,
NULL,
0,
- it->display_title,
+ _(it->display_title),
NULL,
NULL);
}
(char*)it->icon,
NULL,
0,
- it->display_title,
+ _(it->display_title),
NULL,
NULL);
(char*)it->icon,
NULL,
0,
- it->display_title,
+ _(it->display_title),
NULL,
NULL);
}