summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-20 13:21:15 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-20 13:21:15 (EST)
commit84478c075af160a16cebe40e6d40145da0c98ccd (patch)
tree9e0fa21ddb70ac0828b51f5827a3807196918e93 /src
parent7386abf1625af2759e76f3654a0663e537580444 (diff)
downloadmarquee-84478c075af160a16cebe40e6d40145da0c98ccd.zip
marquee-84478c075af160a16cebe40e6d40145da0c98ccd.tar.gz
marquee-84478c075af160a16cebe40e6d40145da0c98ccd.tar.bz2
MqWebView: Internationalize
Diffstat (limited to 'src')
-rw-r--r--src/web-view.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/web-view.c b/src/web-view.c
index 3c24999..6f4897e 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -29,6 +29,7 @@
#include <webkit2/webkit2.h>
#include "config/config.h"
+#include "i18n.h"
#include "notebook.h"
#include "tab-page.h"
#include "web-view-schemes/schemes.h"
@@ -299,23 +300,23 @@ mq_web_view_class_init(MqWebViewClass *klass)
obj_properties[PROP_TAB_PAGE] = g_param_spec_object(
"tab-page",
- "MqTabPage",
- "The parent MqTabPage instance",
+ P_("MqTabPage"),
+ P_("The parent MqTabPage instance"),
MQ_TYPE_TAB_PAGE,
G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
obj_properties[PROP_DISPLAY_URI] = g_param_spec_string(
"display-uri",
- "URI",
- "The current active URI of the Web view, "
- "with \"mq-about:\" rewritten to \"about:\"",
+ P_("URI"),
+ P_("The current active URI of the Web view, "
+ "with \"mq-about:\" rewritten to \"about:\""),
"",
G_PARAM_READWRITE |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
obj_properties[PROP_DATA] = g_param_spec_pointer(
"data",
- "Resource data",
- "The main resource's data",
+ P_("Resource data"),
+ P_("The main resource's data"),
G_PARAM_READABLE |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
g_object_class_install_properties(object_class, N_PROPERTIES,
@@ -466,12 +467,12 @@ mq_web_view_add_html_mhtml_file_chooser_filters(GtkFileChooser *chooser)
GtkFileFilter *filter;
filter = gtk_file_filter_new();
- gtk_file_filter_set_name(filter, "All files");
+ gtk_file_filter_set_name(filter, _("All files"));
gtk_file_filter_add_pattern(filter, "*");
gtk_file_chooser_add_filter(chooser, filter);
filter = gtk_file_filter_new();
- gtk_file_filter_set_name(filter, "All Web pages");
+ gtk_file_filter_set_name(filter, _("All Web pages"));
gtk_file_filter_add_pattern(filter, "*.htm");
gtk_file_filter_add_pattern(filter, "*.html");
gtk_file_filter_add_pattern(filter, "*.mht");
@@ -480,14 +481,14 @@ mq_web_view_add_html_mhtml_file_chooser_filters(GtkFileChooser *chooser)
gtk_file_chooser_add_filter(chooser, filter);
filter = gtk_file_filter_new();
- gtk_file_filter_set_name(filter, "HTML documents (*.htm, *.html)");
+ gtk_file_filter_set_name(filter, _("HTML documents (*.htm, *.html)"));
gtk_file_filter_add_pattern(filter, "*.htm");
gtk_file_filter_add_pattern(filter, "*.html");
gtk_file_chooser_add_filter(chooser, filter);
filter = gtk_file_filter_new();
gtk_file_filter_set_name(filter,
- "MHTML documents (*.mht, *.mhtm, *.mhtml)");
+ _("MHTML documents (*.mht, *.mhtm, *.mhtml)"));
gtk_file_filter_add_pattern(filter, "*.mht");
gtk_file_filter_add_pattern(filter, "*.mhtm");
gtk_file_filter_add_pattern(filter, "*.mhtml");
@@ -528,11 +529,11 @@ mq_web_view_open(MqWebView *web_view)
GtkFileChooser *chooser;
gchar *dir;
- dialog = gtk_file_chooser_dialog_new("Open File",
+ dialog = gtk_file_chooser_dialog_new(_("Open File"),
GTK_WINDOW(mq_tab_page_get_window(web_view->tab_page)),
GTK_FILE_CHOOSER_ACTION_OPEN,
- "_Cancel", GTK_RESPONSE_CANCEL,
- "_Open", GTK_RESPONSE_ACCEPT,
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_Open"), GTK_RESPONSE_ACCEPT,
NULL);
chooser = GTK_FILE_CHOOSER(dialog);