summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-20 13:02:38 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-20 13:02:38 (EST)
commit4b36873c12578d9fcb37e5c0c15669c8559a5fae (patch)
tree58c6edc091bddd6a1c44dc8cd6b70e6f0c8472b5
parentf40f2bdb4a0fd4a539c746dd899285cfbbec1097 (diff)
downloadmarquee-4b36873c12578d9fcb37e5c0c15669c8559a5fae.zip
marquee-4b36873c12578d9fcb37e5c0c15669c8559a5fae.tar.gz
marquee-4b36873c12578d9fcb37e5c0c15669c8559a5fae.tar.bz2
MqHomeButton: Internationalize
-rw-r--r--src/toolbars/navigation/home-button.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/toolbars/navigation/home-button.c b/src/toolbars/navigation/home-button.c
index 684988c..1aaea8c 100644
--- a/src/toolbars/navigation/home-button.c
+++ b/src/toolbars/navigation/home-button.c
@@ -26,6 +26,7 @@
#include <webkit2/webkit2.h>
#include "../../config/config.h"
+#include "../../i18n.h"
#include "../../web-view.h"
struct _MqHomeButton {
@@ -123,14 +124,14 @@ mq_home_button_class_init(MqHomeButtonClass *klass)
obj_properties[PROP_CONFIG] = g_param_spec_pointer(
"config",
- "MqConfig",
- "The application's MqConfig instance",
+ P_("MqConfig"),
+ P_("The application's MqConfig instance"),
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);
@@ -144,11 +145,11 @@ mq_home_button_init(MqHomeButton *home_button)
gtk_tool_button_set_icon_widget(GTK_TOOL_BUTTON(home_button),
gtk_image_new_from_icon_name("go-home",
GTK_ICON_SIZE_SMALL_TOOLBAR));
- gtk_tool_button_set_label(GTK_TOOL_BUTTON(home_button), "Home");
+ gtk_tool_button_set_label(GTK_TOOL_BUTTON(home_button), _("Home"));
gtk_widget_set_can_focus(gtk_bin_get_child(GTK_BIN(home_button)),
FALSE);
gtk_widget_set_tooltip_text(GTK_WIDGET(home_button),
- "Load the home page");
+ _("Load the home page"));
g_signal_connect(home_button, "clicked", G_CALLBACK(clicked_cb), NULL);
}