diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-20 13:15:38 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-20 13:15:38 (EST) |
commit | 90ca0f3b87c1d9dcd7d0b3c4f63dc4f7a782102b (patch) | |
tree | e729454e3d8642435ff472d69e24c82d7e9efd6a | |
parent | 6c17f0940df462dbc90dd92636e6326e4cd13b16 (diff) | |
download | marquee-90ca0f3b87c1d9dcd7d0b3c4f63dc4f7a782102b.zip marquee-90ca0f3b87c1d9dcd7d0b3c4f63dc4f7a782102b.tar.gz marquee-90ca0f3b87c1d9dcd7d0b3c4f63dc4f7a782102b.tar.bz2 |
MqStopReloadButton: Internationalize
-rw-r--r-- | src/toolbars/navigation/stop-reload-button.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/toolbars/navigation/stop-reload-button.c b/src/toolbars/navigation/stop-reload-button.c index e3a2f48..3922b1c 100644 --- a/src/toolbars/navigation/stop-reload-button.c +++ b/src/toolbars/navigation/stop-reload-button.c @@ -25,6 +25,7 @@ #include <gtk/gtk.h> #include <webkit2/webkit2.h> +#include "../../i18n.h" #include "../../web-view.h" struct _MqStopReloadButton { @@ -56,19 +57,19 @@ loading_cb(MqWebView *web_view, GParamSpec G_GNUC_UNUSED *param_spec, GTK_TOOL_BUTTON(stop_reload_button), stop_reload_button->stop_icon); gtk_tool_button_set_label( - GTK_TOOL_BUTTON(stop_reload_button), "Stop"); + GTK_TOOL_BUTTON(stop_reload_button), _("Stop")); gtk_widget_set_tooltip_text( GTK_WIDGET(stop_reload_button), - "Stop loading the current page"); + _("Stop loading the current page")); } else { gtk_tool_button_set_icon_widget( GTK_TOOL_BUTTON(stop_reload_button), stop_reload_button->reload_icon); gtk_tool_button_set_label( - GTK_TOOL_BUTTON(stop_reload_button), "Reload"); + GTK_TOOL_BUTTON(stop_reload_button), _("Reload")); gtk_widget_set_tooltip_text( GTK_WIDGET(stop_reload_button), - "Reload the current page"); + _("Reload the current page")); } gtk_widget_show_all(GTK_WIDGET(stop_reload_button)); } @@ -155,8 +156,8 @@ mq_stop_reload_button_class_init(MqStopReloadButtonClass *klass) 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); @@ -180,11 +181,12 @@ mq_stop_reload_button_init(MqStopReloadButton *stop_reload_button) /* Button */ gtk_tool_button_set_icon_widget(GTK_TOOL_BUTTON(stop_reload_button), stop_reload_button->stop_icon); - gtk_tool_button_set_label(GTK_TOOL_BUTTON(stop_reload_button), "Stop"); + gtk_tool_button_set_label(GTK_TOOL_BUTTON(stop_reload_button), + _("Stop")); gtk_widget_set_can_focus(gtk_bin_get_child(GTK_BIN(stop_reload_button)), FALSE); gtk_widget_set_tooltip_text(GTK_WIDGET(stop_reload_button), - "Stop loading the current page"); + _("Stop loading the current page")); g_signal_connect(stop_reload_button, "clicked", G_CALLBACK(clicked_cb), NULL); } |