summaryrefslogtreecommitdiffstats
path: root/src/web-view-schemes
diff options
context:
space:
mode:
Diffstat (limited to 'src/web-view-schemes')
-rw-r--r--src/web-view-schemes/normal.c41
1 files changed, 21 insertions, 20 deletions
diff --git a/src/web-view-schemes/normal.c b/src/web-view-schemes/normal.c
index fb41ce9..12b2582 100644
--- a/src/web-view-schemes/normal.c
+++ b/src/web-view-schemes/normal.c
@@ -30,6 +30,7 @@
#include "../application.h"
#include "../config/config.h"
#include "../config/settings.h"
+#include "../i18n.h"
#include "../notebook.h"
#include "../tab-page.h"
#include "../web-view.h"
@@ -317,9 +318,9 @@ context_menu_link_cb(WebKitContextMenu *context_menu, MqWebView *web_view)
{
ITEM_DECLS
- NEW_CUSTOM_ITEM(open_link, "_Open Link");
- NEW_CUSTOM_ITEM(open_link_tab, "Open Link in New _Tab");
- NEW_CUSTOM_ITEM(open_link_win, "Open Link in New _Window");
+ NEW_CUSTOM_ITEM(open_link, _("_Open Link"));
+ NEW_CUSTOM_ITEM(open_link_tab, _("Open Link in New _Tab"));
+ NEW_CUSTOM_ITEM(open_link_win, _("Open Link in New _Window"));
NEW_SEPARATOR_ITEM(); /* --- */
NEW_STOCK_ITEM(DOWNLOAD_LINK_TO_DISK); /* _Download Linked File */
NEW_STOCK_ITEM(COPY_LINK_TO_CLIPBOARD); /* Copy Link Loc_ation */
@@ -330,9 +331,9 @@ context_menu_image_cb(WebKitContextMenu *context_menu, MqWebView *web_view)
{
ITEM_DECLS
- NEW_CUSTOM_ITEM(open_image, "Open _Image");
- NEW_CUSTOM_ITEM(open_image_tab, "Open Image in New Tab");
- NEW_CUSTOM_ITEM(open_image_win, "Open Image in New Window");
+ NEW_CUSTOM_ITEM(open_image, _("Open _Image"));
+ NEW_CUSTOM_ITEM(open_image_tab, _("Open Image in New Tab"));
+ NEW_CUSTOM_ITEM(open_image_win, _("Open Image in New Window"));
NEW_SEPARATOR_ITEM(); /* --- */
NEW_STOCK_ITEM(DOWNLOAD_IMAGE_TO_DISK); /* Sa_ve Image As */
NEW_STOCK_ITEM(COPY_IMAGE_TO_CLIPBOARD); /* Cop_y Image */
@@ -352,17 +353,17 @@ context_menu_media_cb(WebKitContextMenu *context_menu, GList *media_ctrl_items,
RESTORE_ITEMS(media_toggle_items);
NEW_SEPARATOR_ITEM(); /* --- */
if (is_video) {
- NEW_CUSTOM_ITEM(open_video, "_Open Video");
- NEW_CUSTOM_ITEM(open_video_tab, "Open Video in New Tab");
- NEW_CUSTOM_ITEM(open_video_win, "Open Video in New Window");
+ NEW_CUSTOM_ITEM(open_video, _("_Open Video"));
+ NEW_CUSTOM_ITEM(open_video_tab, _("Open Video in New Tab"));
+ NEW_CUSTOM_ITEM(open_video_win, _("Open Video in New Window"));
NEW_SEPARATOR_ITEM(); /* --- */
NEW_STOCK_ITEM(DOWNLOAD_VIDEO_TO_DISK); /* Download _Video */
/* Cop_y Video Link Location */
NEW_STOCK_ITEM(COPY_VIDEO_LINK_TO_CLIPBOARD);
} else {
- NEW_CUSTOM_ITEM(open_audio, "_Open Audio");
- NEW_CUSTOM_ITEM(open_audio_tab, "Open Audio in New Tab");
- NEW_CUSTOM_ITEM(open_audio_win, "Open Audio in New Window");
+ NEW_CUSTOM_ITEM(open_audio, _("_Open Audio"));
+ NEW_CUSTOM_ITEM(open_audio_tab, _("Open Audio in New Tab"));
+ NEW_CUSTOM_ITEM(open_audio_win, _("Open Audio in New Window"));
NEW_SEPARATOR_ITEM(); /* --- */
NEW_STOCK_ITEM(DOWNLOAD_AUDIO_TO_DISK); /* Download _Audio */
/* Cop_y Audio Link Location */
@@ -398,7 +399,7 @@ context_menu_document_cb(WebKitContextMenu *context_menu, GList *nav_items,
NEW_SEPARATOR_ITEM(); /* --- */
NEW_STOCK_ITEM(SELECT_ALL); /* Select _All */
NEW_SEPARATOR_ITEM(); /* --- */
- NEW_CUSTOM_ITEM(view_source, "View Page So_urce");
+ NEW_CUSTOM_ITEM(view_source, _("View Page So_urce"));
}
#define PRESERVE_ITEM(ITEMS) \
@@ -767,12 +768,12 @@ save_file(MqWebView *web_view, MqWebViewScheme *scheme)
GtkWidget *type_combo_box;
GtkWidget *type_box;
- dialog = gtk_file_chooser_dialog_new("Save File",
+ dialog = gtk_file_chooser_dialog_new(_("Save File"),
GTK_WINDOW(mq_tab_page_get_window(
mq_web_view_get_tab_page(web_view))),
GTK_FILE_CHOOSER_ACTION_SAVE,
- "_Cancel", GTK_RESPONSE_CANCEL,
- "_Save", GTK_RESPONSE_ACCEPT,
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_Save"), GTK_RESPONSE_ACCEPT,
NULL);
chooser = GTK_FILE_CHOOSER(dialog);
@@ -793,11 +794,11 @@ save_file(MqWebView *web_view, MqWebViewScheme *scheme)
type_combo_box = gtk_combo_box_text_new();
gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(type_combo_box),
- "detect", "By extension");
+ "detect", _("By extension"));
gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(type_combo_box),
- "html", "HTML document only");
+ "html", _("HTML document only"));
gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(type_combo_box),
- "mhtml", "MHTML archive with associated resources");
+ "mhtml", _("MHTML archive with associated resources"));
gtk_combo_box_set_active(GTK_COMBO_BOX(type_combo_box), 0);
g_signal_connect(type_combo_box, "changed",
G_CALLBACK(save_type_changed_cb), chooser);
@@ -805,7 +806,7 @@ save_file(MqWebView *web_view, MqWebViewScheme *scheme)
type_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start(GTK_BOX(type_box),
- gtk_label_new("Save as file type:"), FALSE, FALSE, 0);
+ gtk_label_new(_("Save as file type:")), FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(type_box), type_combo_box, FALSE, FALSE, 0);
gtk_file_chooser_set_extra_widget(chooser, type_box);