diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-20 11:08:43 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-20 11:08:43 (EST) |
commit | 1546a01b88a9f7f0120c42dd4739b36acc2bd216 (patch) | |
tree | 756a643a9d2456f0b31c44e2d45d4e8d2c4a7e11 /src | |
parent | bdf7816f92b3dc9bbbdfa2f8af8e6379beea4b7d (diff) | |
download | marquee-1546a01b88a9f7f0120c42dd4739b36acc2bd216.zip marquee-1546a01b88a9f7f0120c42dd4739b36acc2bd216.tar.gz marquee-1546a01b88a9f7f0120c42dd4739b36acc2bd216.tar.bz2 |
MqNotebook: Internationalize
Diffstat (limited to 'src')
-rw-r--r-- | src/notebook.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/notebook.c b/src/notebook.c index 57740c0..7b846f4 100644 --- a/src/notebook.c +++ b/src/notebook.c @@ -24,6 +24,7 @@ #include <glib.h> #include <gtk/gtk.h> +#include "i18n.h" #include "tab-label.h" #include "tab-page.h" #include "tree.h" @@ -108,8 +109,8 @@ mq_notebook_class_init(MqNotebookClass *klass) obj_properties[PROP_WINDOW] = g_param_spec_object( "window", - "MqWindow", - "The parent MqWindow instance", + P_("MqWindow"), + P_("The parent MqWindow instance"), MQ_TYPE_WINDOW, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB); @@ -264,7 +265,7 @@ mq_notebook_init(MqNotebook *notebook) GTK_ICON_SIZE_BUTTON); gtk_button_set_relief(GTK_BUTTON(new_tab_button), GTK_RELIEF_NONE); gtk_widget_set_can_focus(new_tab_button, FALSE); - gtk_widget_set_tooltip_text(new_tab_button, "New tab"); + gtk_widget_set_tooltip_text(new_tab_button, _("New tab")); gtk_notebook_set_action_widget(GTK_NOTEBOOK(notebook), new_tab_button, GTK_PACK_START); gtk_widget_show_all(new_tab_button); @@ -275,7 +276,7 @@ mq_notebook_init(MqNotebook *notebook) GTK_ICON_SIZE_BUTTON); gtk_button_set_relief(GTK_BUTTON(tab_list_button), GTK_RELIEF_NONE); gtk_widget_set_can_focus(tab_list_button, FALSE); - gtk_widget_set_tooltip_text(tab_list_button, "Tab list"); + gtk_widget_set_tooltip_text(tab_list_button, _("Tab list")); gtk_notebook_set_action_widget(GTK_NOTEBOOK(notebook), tab_list_button, GTK_PACK_END); gtk_widget_show_all(tab_list_button); |