bbox = gtk_hbox_new (FALSE, 0);
settings = katze_object_get_object (browser, "settings");
button = katze_property_proxy (settings, "auto-load-images", NULL);
- gtk_button_set_label (GTK_BUTTON (button), _("Load images automatically"));
+ gtk_button_set_label (GTK_BUTTON (button), _("Images"));
+ #if GTK_CHECK_VERSION(2, 12, 0)
+ gtk_widget_set_tooltip_text (button, _("Load images automatically"));
+ #endif
gtk_box_pack_start (GTK_BOX (bbox), button, FALSE, FALSE, 2);
gtk_widget_show (button);
button = katze_property_proxy (settings, "enable-scripts", NULL);
- gtk_button_set_label (GTK_BUTTON (button), _("Enable scripts"));
+ gtk_button_set_label (GTK_BUTTON (button), _("Scripts"));
+ #if GTK_CHECK_VERSION(2, 12, 0)
+ gtk_widget_set_tooltip_text (button, _("Enable scripts"));
+ #endif
+ gtk_box_pack_start (GTK_BOX (bbox), button, FALSE, FALSE, 2);
+ gtk_widget_show (button);
+ button = katze_property_proxy (settings, "enable-plugins", NULL);
+ gtk_button_set_label (GTK_BUTTON (button), _("Plugins"));
+ #if GTK_CHECK_VERSION(2, 12, 0)
+ gtk_widget_set_tooltip_text (button, _("Enable plugins"));
+ #endif
gtk_box_pack_start (GTK_BOX (bbox), button, FALSE, FALSE, 2);
gtk_widget_show (button);
gtk_widget_show (bbox);
GTK_MESSAGE_DIALOG (dialog), "%s", error_messages->str);
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- "_Ignore", GTK_RESPONSE_ACCEPT,
+ _("_Ignore"), GTK_RESPONSE_ACCEPT,
NULL);
if (gtk_dialog_run (GTK_DIALOG (dialog)) != GTK_RESPONSE_ACCEPT)
{
gboolean success,
MidoriView* view)
{
+ gchar* title;
gchar* data;
if (!success)
{
- /* Simply print a 404 error page on the fly. */
+ /* i18n: The title of the 404 - Not found error page */
+ title = g_strdup_printf (_("Not found - %s"), view->uri);
data = g_strdup_printf (
- "<html><head><title>Not found - %s</title></head>"
- "<body><h1>Not found - %s</h1>"
+ "<html><head><title>%s</title></head>"
+ "<body><h1>%s</h1>"
"<img src=\"file://" DATADIR "/midori/logo-shade.png\" "
"style=\"position: absolute; right: 15px; bottom: 15px;\">"
"<p />The page you were opening doesn't exist."
"<p />Try to <a href=\"%s\">load the page again</a>, "
"or move on to another page."
"</body></html>",
- view->uri, view->uri, view->uri);
+ title, title, view->uri);
+ g_free (title);
webkit_web_view_load_html_string (
WEBKIT_WEB_VIEW (view->web_view), data, view->uri);
g_free (data);
data = NULL;
if (!strncmp (uri, "error:nodocs ", 13))
{
+ gchar* title;
+
katze_assign (view->uri, g_strdup (&uri[13]));
+ title = g_strdup_printf (_("No documentation installed"));
data = g_strdup_printf (
- "<html><head><title>No documentation installed</title></head>"
- "<body><h1>No documentation installed</h1>"
+ "<html><head><title>%s</title></head>"
+ "<body><h1>%s</h1>"
"<img src=\"file://" DATADIR "/midori/logo-shade.png\" "
"style=\"position: absolute; right: 15px; bottom: 15px;\">"
"<p />There is no documentation installed at %s."
"package maintainer for it or if this a custom build "
"verify that the build is setup properly."
"</body></html>",
- view->uri);
+ title, title, view->uri);
+ g_free (title);
}
if (data)
{