From 382b7a242c68a0f4e24382476a6db95f0f87183a Mon Sep 17 00:00:00 2001 From: Kim Jinho Date: Thu, 7 Feb 2013 17:34:04 +0900 Subject: [PATCH] Apply STMS string ID on some hard coded text --- mailbox/src/email-mailbox-controlbar.c | 14 +++++++------- mailbox/src/email-mailbox-list.c | 2 +- mailbox/src/email-mailbox.c | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/mailbox/src/email-mailbox-controlbar.c b/mailbox/src/email-mailbox-controlbar.c index e14448c..33287ef 100755 --- a/mailbox/src/email-mailbox-controlbar.c +++ b/mailbox/src/email-mailbox-controlbar.c @@ -1323,16 +1323,16 @@ static void _create_mailbox_list_popup_cb(void *data, MailboxPopupType popup_typ for (index = (int)popup_type; index < ((int)popup_type + max_item_cnt); index++) { switch(index) { case MARK_AS_READ: - snprintf(buf, sizeof(buf), "Read"); + snprintf(buf, sizeof(buf), _("IDS_EMAIL_OPT_READ")); break; case MARK_AS_UNREAD: - snprintf(buf, sizeof(buf), "Unread"); + snprintf(buf, sizeof(buf), _("IDS_EMAIL_OPT_UNREAD")); break; case SET_AS_FAVOURITE: - snprintf(buf, sizeof(buf), "Favourites"); + snprintf(buf, sizeof(buf), _("IDS_EMAIL_BODY_FAVOURITES")); break; case SET_AS_UNFAVOURITE: - snprintf(buf, sizeof(buf), "Unfavourites"); + snprintf(buf, sizeof(buf), N_("Unfavourites")); break; } elm_popup_item_append(popup, buf, NULL, _mailbox_list_popup_item_selected_cb, data); @@ -1364,11 +1364,11 @@ static void _mailbox_list_popup_item_selected_cb(void *data, Evas_Object *obj, v debug_log("text(%s) is clicked\n", label); - if(!g_strcmp0(label, N_("Read"))) + if(!g_strcmp0(label, _("IDS_EMAIL_OPT_READ"))) _markread_mail_cb(data, NULL, NULL); - else if (!g_strcmp0(label, N_("Unread"))) + else if (!g_strcmp0(label, _("IDS_EMAIL_OPT_UNREAD"))) _markunread_mail_cb(data, NULL, NULL); - else if (!g_strcmp0(label, N_("Favourites"))) + else if (!g_strcmp0(label, _("IDS_EMAIL_BODY_FAVOURITES"))) _set_as_favourite_mail_cb(data, NULL, NULL); else if (!g_strcmp0(label, N_("Unfavourites"))) _set_as_unfavourite_mail_cb(data, NULL, NULL); diff --git a/mailbox/src/email-mailbox-list.c b/mailbox/src/email-mailbox-list.c index dff5ca0..f3bf197 100755 --- a/mailbox/src/email-mailbox-list.c +++ b/mailbox/src/email-mailbox-list.c @@ -1224,7 +1224,7 @@ void email_maillist_select_info(EmailMailboxUGD *mailbox_ugd) elm_object_part_text_set(mailbox_ugd->split_nocontent, "elm.text", tmp); } else { - elm_object_part_text_set(mailbox_ugd->split_nocontent, "elm.text", N_("No email selected")); + elm_object_part_text_set(mailbox_ugd->split_nocontent, "elm.text", _("IDS_EMAIL_POP_NO_EMAIL_SELECTED")); } } } diff --git a/mailbox/src/email-mailbox.c b/mailbox/src/email-mailbox.c index d7bfffc..959fdb1 100755 --- a/mailbox/src/email-mailbox.c +++ b/mailbox/src/email-mailbox.c @@ -1711,7 +1711,7 @@ void _split_back_clicked(void *data, Evas_Object *obj, void *event_info) EmailMailboxUGD *mailbox_ugd = data; if (mailbox_ugd->view_type == EMAIL_VIEW_EDIT) { if(mailbox_ugd->split_nocontent) - elm_object_part_text_set(mailbox_ugd->split_nocontent, "elm.text", N_("No email selected")); + elm_object_part_text_set(mailbox_ugd->split_nocontent, "elm.text", _("IDS_EMAIL_POP_NO_EMAIL_SELECTED")); _edit_back_cb(mailbox_ugd, NULL, NULL); } @@ -1857,7 +1857,7 @@ void _create_email_no_content_view(EmailMailboxUGD *mailbox_ugd) elm_object_part_text_set(mailbox_ugd->split_nocontent, "elm.text", tmp); } else { - elm_object_part_text_set(mailbox_ugd->split_nocontent, "elm.text", N_("No email selected")); + elm_object_part_text_set(mailbox_ugd->split_nocontent, "elm.text", _("IDS_EMAIL_POP_NO_EMAIL_SELECTED")); } evas_object_show(mailbox_ugd->split_nocontent); -- 2.7.4