summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-20 12:55:44 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-20 12:55:44 (EST)
commit5e87fc0222e13bff335bc9232275be8797cde463 (patch)
tree79e9643bc41e0288141f0a4895575751dec95401
parent3e3ed3e5f357f2f3828b201c99aabfc8f60e3db1 (diff)
downloadmarquee-5e87fc0222e13bff335bc9232275be8797cde463.zip
marquee-5e87fc0222e13bff335bc9232275be8797cde463.tar.gz
marquee-5e87fc0222e13bff335bc9232275be8797cde463.tar.bz2
MqFindToolbar: Internationalize
-rw-r--r--src/toolbars/find-toolbar.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/toolbars/find-toolbar.c b/src/toolbars/find-toolbar.c
index 6c367fa..d8762d0 100644
--- a/src/toolbars/find-toolbar.c
+++ b/src/toolbars/find-toolbar.c
@@ -25,6 +25,7 @@
#include <gtk/gtk.h>
#include <webkit2/webkit2.h>
+#include "../i18n.h"
#include "../web-view.h"
struct _MqFindToolbar {
@@ -202,7 +203,7 @@ failed_to_find_text_cb(WebKitFindController G_GNUC_UNUSED *find_controller,
if (find_options & WEBKIT_FIND_OPTIONS_WRAP_AROUND) {
gtk_spinner_stop(find_toolbar->spinner);
gtk_label_set_text(GTK_LABEL(find_toolbar->matches_label),
- "No matches");
+ _("No matches"));
} else {
search(find_toolbar,
!(find_options & WEBKIT_FIND_OPTIONS_BACKWARDS), TRUE);
@@ -264,8 +265,8 @@ mq_find_toolbar_class_init(MqFindToolbarClass *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);
@@ -293,7 +294,7 @@ mq_find_toolbar_init(MqFindToolbar *find_toolbar)
prev_button = gtk_button_new_from_icon_name("go-up",
GTK_ICON_SIZE_BUTTON);
gtk_button_set_relief(GTK_BUTTON(prev_button), GTK_RELIEF_NONE);
- gtk_widget_set_tooltip_text(prev_button, "Find previous occurrence");
+ gtk_widget_set_tooltip_text(prev_button, _("Find previous occurrence"));
gtk_widget_set_can_focus(prev_button, FALSE);
g_signal_connect(prev_button, "clicked",
G_CALLBACK(prev_clicked_cb), find_toolbar);
@@ -302,16 +303,17 @@ mq_find_toolbar_init(MqFindToolbar *find_toolbar)
next_button = gtk_button_new_from_icon_name("go-down",
GTK_ICON_SIZE_BUTTON);
gtk_button_set_relief(GTK_BUTTON(next_button), GTK_RELIEF_NONE);
- gtk_widget_set_tooltip_text(next_button, "Find next occurrence");
+ gtk_widget_set_tooltip_text(next_button, _("Find next occurrence"));
gtk_widget_set_can_focus(next_button, FALSE);
g_signal_connect(next_button, "clicked",
G_CALLBACK(next_clicked_cb), find_toolbar);
/* Case sensitivity button */
- match_case_button = gtk_toggle_button_new_with_mnemonic("Mat_ch Case");
+ match_case_button = gtk_toggle_button_new_with_mnemonic(
+ _("Mat_ch Case"));
gtk_button_set_relief(GTK_BUTTON(match_case_button), GTK_RELIEF_NONE);
gtk_widget_set_tooltip_text(match_case_button,
- "Search with case sensitivity");
+ _("Search with case sensitivity"));
gtk_widget_set_can_focus(match_case_button, FALSE);
g_signal_connect(match_case_button, "toggled",
G_CALLBACK(match_case_toggled_cb), find_toolbar);
@@ -326,7 +328,7 @@ mq_find_toolbar_init(MqFindToolbar *find_toolbar)
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 find bar");
+ gtk_widget_set_tooltip_text(close_button, _("Close find bar"));
gtk_widget_set_can_focus(close_button, FALSE);
g_signal_connect(close_button, "clicked",
G_CALLBACK(close_clicked_cb), find_toolbar);