[anjal] BUGFIX: GNOME Bugzilla #591637 - Translated strings aren't used in the
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjal] BUGFIX: GNOME Bugzilla #591637 - Translated strings aren't used in the
- Date: Thu, 13 Aug 2009 04:48:12 +0000 (UTC)
commit 6f953ca50e8bc4fcf31347c6eed2af529aedd3a2
Author: KelvinZhao <kelvinz turbolinux com cn>
Date: Thu Aug 13 10:16:47 2009 +0530
BUGFIX: GNOME Bugzilla #591637 - Translated strings aren't used in the
UI
src/mail-account-view.c | 10 +++++-----
src/mail-component.c | 4 ++--
src/mail-folder-view.c | 4 ++--
3 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/mail-account-view.c b/src/mail-account-view.c
index cadbbfa..356c398 100644
--- a/src/mail-account-view.c
+++ b/src/mail-account-view.c
@@ -391,7 +391,7 @@ mav_next_pressed (GtkButton *button, MailAccountView *mav)
int ret = (*mail_account_pages[mav->current_page].validate_page) (mav);
MAVPage *page = mav->pages[mav->current_page];
if (ret) {
- gtk_label_set_text ((GtkLabel *)page->error_label, dialog_errors[ret-1].detail);
+ gtk_label_set_text ((GtkLabel *)page->error_label, _(dialog_errors[ret-1].detail));
gtk_widget_show (page->error);
return;
}
@@ -486,7 +486,7 @@ mav_construct_page(MailAccountView *view, MAVPageType type)
gtk_widget_show(box);
gtk_box_pack_start((GtkBox *)page->box, box, FALSE, FALSE, 12);
tmp = gtk_label_new (NULL);
- str = g_strdup_printf("<span size=\"xx-large\" weight=\"heavy\">%s</span>", mail_account_pages[type].head);
+ str = g_strdup_printf("<span size=\"xx-large\" weight=\"heavy\">%s</span>", _(mail_account_pages[type].head));
gtk_label_set_markup ((GtkLabel *)tmp, str);
g_free(str);
gtk_widget_show (tmp);
@@ -495,7 +495,7 @@ mav_construct_page(MailAccountView *view, MAVPageType type)
box = gtk_hbox_new (FALSE, 12);
gtk_widget_show(box);
gtk_box_pack_start((GtkBox *)page->box, box, FALSE, FALSE, 12);
- tmp = gtk_label_new (mail_account_pages[type].detail);
+ tmp = gtk_label_new (_(mail_account_pages[type].detail));
gtk_widget_set_size_request (tmp, 600, -1);
gtk_label_set_line_wrap ((GtkLabel *)tmp, TRUE);
gtk_label_set_line_wrap_mode ((GtkLabel *)tmp, PANGO_WRAP_WORD);
@@ -521,7 +521,7 @@ mav_construct_page(MailAccountView *view, MAVPageType type)
tmp = gtk_image_new_from_icon_name ("go-previous", GTK_ICON_SIZE_BUTTON);
gtk_box_pack_start((GtkBox *)box, tmp, FALSE, FALSE, 0);
}
- tmp = gtk_label_new (mail_account_pages[type].prev);
+ tmp = gtk_label_new (_(mail_account_pages[type].prev));
gtk_box_pack_start((GtkBox *)box, tmp, FALSE, FALSE, 3);
page->prev = gtk_button_new ();
gtk_container_add ((GtkContainer *)page->prev, box);
@@ -531,7 +531,7 @@ mav_construct_page(MailAccountView *view, MAVPageType type)
if (mail_account_pages[type].next) {
box = gtk_hbox_new(FALSE, 0);
- tmp = gtk_label_new (mail_account_pages[type].next);
+ tmp = gtk_label_new (_(mail_account_pages[type].next));
gtk_box_pack_start((GtkBox *)box, tmp, FALSE, FALSE, 3);
if (anjal_icon_decoration) {
tmp = gtk_image_new_from_icon_name ("go-next", GTK_ICON_SIZE_BUTTON);
diff --git a/src/mail-component.c b/src/mail-component.c
index 6fc5d14..a2aac3b 100644
--- a/src/mail-component.c
+++ b/src/mail-component.c
@@ -1323,7 +1323,7 @@ query_tooltip_cb (GtkTreeView *view,
model = gtk_tree_view_get_model (view);
gtk_tree_model_get (model, &iter, COL_LEVEL, &level, -1);
- gtk_tooltip_set_text (tooltip, ldata[level].key);
+ gtk_tooltip_set_text (tooltip, _(ldata[level].key));
return TRUE;
}
@@ -1450,7 +1450,7 @@ mail_component_show_logger (gpointer top)
widget = gtk_combo_box_new_text ();
for (i = E_LOG_ERROR; i <= E_LOG_DEBUG; i++)
gtk_combo_box_append_text (
- GTK_COMBO_BOX (widget), ldata[i].text);
+ GTK_COMBO_BOX (widget), _(ldata[i].text));
gconf_bridge_bind_property (
bridge, "/apps/evolution/mail/display/error_level",
G_OBJECT (widget), "active");
diff --git a/src/mail-folder-view.c b/src/mail-folder-view.c
index a092d1f..0fb619f 100644
--- a/src/mail-folder-view.c
+++ b/src/mail-folder-view.c
@@ -1878,9 +1878,9 @@ mail_folder_view_show_sort_popup (MailFolderView *mfv, GtkWidget *button)
for (i=0; i<cnt; i++) {
if (titem)
- item = gtk_radio_menu_item_new_with_mnemonic_from_widget ((GtkRadioMenuItem *)titem, sorting[i].label);
+ item = gtk_radio_menu_item_new_with_mnemonic_from_widget ((GtkRadioMenuItem *)titem, _(sorting[i].label));
else
- item = gtk_radio_menu_item_new_with_mnemonic (NULL, sorting[i].label);
+ item = gtk_radio_menu_item_new_with_mnemonic (NULL, _(sorting[i].label));
g_object_set_data ((GObject *)item, "data", GINT_TO_POINTER(sorting[i].value));
g_signal_connect (item, "toggled", G_CALLBACK (mfv_set_sort), mfv);
gtk_menu_shell_append ((GtkMenuShell *)menu, item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]