From edfe7434462015822e43d3321995e260fffe6722 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 20 Nov 2017 13:16:32 -0500 Subject: MqUriEntry: Internationalize --- diff --git a/src/toolbars/navigation/uri-entry.c b/src/toolbars/navigation/uri-entry.c index c056911..da7dc53 100644 --- a/src/toolbars/navigation/uri-entry.c +++ b/src/toolbars/navigation/uri-entry.c @@ -25,6 +25,7 @@ #include #include +#include "../../i18n.h" #include "../../web-view.h" struct _MqUriEntry { @@ -260,15 +261,15 @@ mq_uri_entry_class_init(MqUriEntryClass *klass) obj_properties[PROP_URI] = g_param_spec_string( "uri", - "URI", - "The initial URI in the URI entry", + P_("URI"), + P_("The initial URI in the URI entry"), "", 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); @@ -281,7 +282,7 @@ mq_uri_entry_init(MqUriEntry *uri_entry) { uri_entry->uri_entry = gtk_entry_new(); gtk_entry_set_placeholder_text(GTK_ENTRY(uri_entry->uri_entry), - "URI..."); + _("URI...")); gtk_entry_set_icon_from_icon_name(GTK_ENTRY(uri_entry->uri_entry), GTK_ENTRY_ICON_PRIMARY, "text-html"); gtk_entry_set_progress_fraction(GTK_ENTRY(uri_entry->uri_entry), 0.0); -- cgit v0.9.1