summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tab-label.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/tab-label.c b/src/tab-label.c
index b6fd5b9..5ac3fc0 100644
--- a/src/tab-label.c
+++ b/src/tab-label.c
@@ -25,6 +25,7 @@
#include <gtk/gtk.h>
#include <webkit2/webkit2.h>
+#include "i18n.h"
#include "notebook.h"
#include "tab-page.h"
#include "web-view.h"
@@ -116,13 +117,13 @@ create_tab_popover(GtkWidget *widget, MqTabLabel *tab_label)
gtk_widget_set_halign(button_grid, GTK_ALIGN_CENTER);
/* Set up buttons. */
- NEW_BUTTON(0, 0, "view-refresh", "Reload tab");
- NEW_BUTTON(0, 1, "edit-copy", "Duplicate tab");
- NEW_BUTTON(0, 2, "window-new", "Move tab to new window");
- NEW_BUTTON(0, 3, "window-close", "Close tab");
- NEW_BUTTON(1, 0, "tab-new-symbolic", "New tab");
- NEW_BUTTON(1, 1, "window-new", "New window");
- NEW_BUTTON(1, 2, "edit-undo", "Undo close tab");
+ NEW_BUTTON(0, 0, "view-refresh", _("Reload tab"));
+ NEW_BUTTON(0, 1, "edit-copy", _("Duplicate tab"));
+ NEW_BUTTON(0, 2, "window-new", _("Move tab to new window"));
+ NEW_BUTTON(0, 3, "window-close", _("Close tab"));
+ NEW_BUTTON(1, 0, "tab-new-symbolic", _("New tab"));
+ NEW_BUTTON(1, 1, "window-new", _("New window"));
+ NEW_BUTTON(1, 2, "edit-undo", _("Undo close tab"));
CLICKED_CB(0, 0, reload_tab_clicked_cb);
/* TODO: 0, 1: Duplicate tab */
@@ -303,15 +304,15 @@ mq_tab_label_class_init(MqTabLabelClass *klass)
obj_properties[PROP_TAB_PAGE] = g_param_spec_object(
"tab-page",
- "MqTabPage",
- "The ancestral MqTabPage instance",
+ P_("MqTabPage"),
+ P_("The ancestral MqTabPage instance"),
MQ_TYPE_TAB_PAGE,
G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
obj_properties[PROP_WEB_VIEW] = g_param_spec_object(
"web-view",
- "MqWebView",
- "The associated MqWebView instance",
+ P_("MqWebView"),
+ P_("The associated MqWebView instance"),
MQ_TYPE_WEB_VIEW,
G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
@@ -325,7 +326,7 @@ mq_tab_label_init(MqTabLabel *tab_label)
GtkWidget *close_button;
GtkWidget *box;
- tab_label->title = "New Tab";
+ tab_label->title = _("New Tab");
/* Set up tab image. */
tab_label->image = gtk_image_new_from_icon_name("text-html",
@@ -342,7 +343,7 @@ mq_tab_label_init(MqTabLabel *tab_label)
close_button = gtk_button_new_from_icon_name("window-close",
GTK_ICON_SIZE_BUTTON);
gtk_button_set_relief(GTK_BUTTON(close_button), GTK_RELIEF_NONE);
- gtk_widget_set_tooltip_text(close_button, "Close tab");
+ gtk_widget_set_tooltip_text(close_button, _("Close tab"));
g_signal_connect(close_button, "clicked",
G_CALLBACK(close_clicked_cb), tab_label);