{ STOCK_EXTENSIONS, N_("_Extensions"), 0, 0, GTK_STOCK_CONVERT },
{ STOCK_HISTORY, N_("_History"), 0, 0, GTK_STOCK_SORT_ASCENDING },
{ STOCK_HOMEPAGE, N_("_Homepage"), 0, 0, GTK_STOCK_HOME },
- { STOCK_OPEN_IN_TAB, N_("Open in New _Tab"), 0, 0, GTK_STOCK_ADD },
- { STOCK_OPEN_IN_WINDOW, N_("Open in New _Window"), 0, 0, GTK_STOCK_ADD },
{ STOCK_PAGE_HOLDER, N_("_Pageholder"), 0, 0, GTK_STOCK_ORIENTATION_PORTRAIT },
{ STOCK_SCRIPTS, N_("_Userscripts"), 0, 0, GTK_STOCK_EXECUTE },
{ STOCK_STYLES, N_("User_styles"), 0, 0, GTK_STOCK_SELECT_COLOR },
G_KEY_FILE_KEEP_COMMENTS, &error))
{
if (error->code != G_FILE_ERROR_NOENT)
- printf (_("The configuration couldn't be loaded. %s\n"),
+ printf (_("The configuration couldn't be loaded: %s\n"),
error->message);
g_error_free (error);
}
{
*error = g_error_new (MIDORI_HISTORY_ERROR,
MIDORI_HISTORY_ERROR_DB_OPEN,
- _("Error opening database: %s\n"),
+ _("Failed to open database: %s\n"),
sqlite3_errmsg (db));
}
sqlite3_close (db);
{
*error = g_error_new (MIDORI_HISTORY_ERROR,
MIDORI_HISTORY_ERROR_EXEC_SQL,
- _("Error opening database: %s\n"),
+ _("Failed to open database: %s\n"),
errmsg);
}
sqlite3_free (errmsg);
success = db_exec (db, sqlcmd, &error);
if (!success)
{
- g_printerr (_("Failed to remove history item. %s\n"), error->message);
+ g_printerr (_("Failed to remove history item: %s\n"), error->message);
g_error_free (error);
return ;
}
if (!db_exec (db, "DELETE FROM history", &error))
{
- g_printerr (_("Failed to clear history. %s\n"), error->message);
+ g_printerr (_("Failed to clear history: %s\n"), error->message);
g_error_free (error);
}
}
if (!db_exec_callback (db, "SELECT date('now')",
gettimestr, item, &error))
{
- g_printerr (_("Failed to add history item. %s\n"), error->message);
+ g_printerr (_("Failed to add history item: %s\n"), error->message);
g_error_free (error);
return;
}
g_free (sqlcmd);
if (!success)
{
- g_printerr (_("Failed to add history item. %s\n"), error->message);
+ g_printerr (_("Failed to add history item: %s\n"), error->message);
g_error_free (error);
return ;
}
db_exec (db, sqlcmd, &error);
if (!success)
{
- g_printerr (_("Failed to remove old history items. %s\n"), error->message);
+ g_printerr (_("Failed to remove old history items: %s\n"), error->message);
g_error_free (error);
return ;
}
{
if (error->code != G_FILE_ERROR_NOENT)
g_string_append_printf (error_messages,
- _("The bookmarks couldn't be loaded. %s\n"), error->message);
+ _("The bookmarks couldn't be loaded: %s\n"), error->message);
g_error_free (error);
}
g_free (config_file);
{
if (error->code != G_FILE_ERROR_NOENT)
g_string_append_printf (error_messages,
- _("The session couldn't be loaded. %s\n"), error->message);
+ _("The session couldn't be loaded: %s\n"), error->message);
g_error_free (error);
}
g_free (config_file);
{
if (error->code != G_FILE_ERROR_NOENT)
g_string_append_printf (error_messages,
- _("The trash couldn't be loaded. %s\n"), error->message);
+ _("The trash couldn't be loaded: %s\n"), error->message);
g_error_free (error);
}
g_free (config_file);
if ((db = midori_history_initialize (history, config_file, &error)) == NULL)
{
g_string_append_printf (error_messages,
- _("The history couldn't be loaded. %s\n"), error->message);
+ _("The history couldn't be loaded: %s\n"), error->message);
g_error_free (error);
}
g_free (config_file);
GtkWidget* dialog;
dialog = gtk_file_chooser_dialog_new (
- ("Open file"), GTK_WINDOW (browser),
+ _("Open file"), GTK_WINDOW (browser),
GTK_FILE_CHOOSER_ACTION_OPEN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
gchar* folder;
dialog = gtk_file_chooser_dialog_new (
- ("Save file as"), GTK_WINDOW (browser),
+ _("Save file as"), GTK_WINDOW (browser),
GTK_FILE_CHOOSER_ACTION_SAVE,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
static void
midori_browser_bookmark_popup_item (GtkWidget* menu,
const gchar* stock_id,
+ const gchar* label,
KatzeItem* item,
gpointer callback,
MidoriBrowser* browser)
uri = katze_item_get_uri (item);
menuitem = gtk_image_menu_item_new_from_stock (stock_id, NULL);
+ if (label)
+ gtk_label_set_text_with_mnemonic (GTK_LABEL (gtk_bin_get_child (
+ GTK_BIN (menuitem))), label);
if (!strcmp (stock_id, GTK_STOCK_EDIT))
gtk_widget_set_sensitive (menuitem,
KATZE_IS_ARRAY (item) || uri != NULL);
GtkWidget* menuitem;
menu = gtk_menu_new ();
- midori_browser_bookmark_popup_item (menu, GTK_STOCK_OPEN,
+ midori_browser_bookmark_popup_item (menu, GTK_STOCK_OPEN, NULL,
item, midori_browser_bookmark_open_activate_cb, browser);
- midori_browser_bookmark_popup_item (menu, STOCK_OPEN_IN_TAB,
+ midori_browser_bookmark_popup_item (menu, STOCK_TAB_NEW, _("Open in New _Tab"),
item, midori_browser_bookmark_open_in_tab_activate_cb, browser);
- midori_browser_bookmark_popup_item (menu, STOCK_OPEN_IN_WINDOW,
+ midori_browser_bookmark_popup_item (menu, STOCK_WINDOW_NEW, _("Open in New _Window"),
item, midori_browser_bookmark_open_in_window_activate_cb, browser);
if (history_item && !KATZE_IS_ARRAY (item))
- midori_browser_bookmark_popup_item (menu, STOCK_BOOKMARK_ADD,
+ midori_browser_bookmark_popup_item (menu, STOCK_BOOKMARK_ADD, NULL,
item, midori_browser_bookmark_bookmark_activate_cb, browser);
menuitem = gtk_separator_menu_item_new ();
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
gtk_widget_show (menuitem);
if (!history_item)
- midori_browser_bookmark_popup_item (menu, GTK_STOCK_EDIT,
+ midori_browser_bookmark_popup_item (menu, GTK_STOCK_EDIT, NULL,
item, midori_browser_bookmark_edit_activate_cb, browser);
- midori_browser_bookmark_popup_item (menu, GTK_STOCK_DELETE,
+ midori_browser_bookmark_popup_item (menu, GTK_STOCK_DELETE, NULL,
item, midori_browser_bookmark_delete_activate_cb, browser);
sokoke_widget_popup (widget, GTK_MENU (menu),
N_("Clear the entire history"), G_CALLBACK (_action_history_clear_activate) },
{ "HistoryAddBookmark", STOCK_BOOKMARK_ADD,
NULL, "",
- N_("Add the selected history item as a bookmark"),
+ N_("Bookmark the selected history item"),
G_CALLBACK (_action_history_add_bookmark_activate) },
{ "Tools", NULL, N_("_Tools") },
{ "ManageSearchEngines", GTK_STOCK_PROPERTIES,
"name", "RecentlyVisited",
"label", _("_Recently visited pages"),
"stock-id", STOCK_HISTORY,
- "tooltip", _("Revisit pages that you opened before"),
+ "tooltip", _("Reopen pages that you visited earlier"),
NULL);
g_object_connect (action,
"signal::populate-popup",
"name", "Bookmarks",
"label", _("_Bookmarks"),
"stock-id", STOCK_BOOKMARKS,
- "tooltip", _("Reopen a previously closed tab or window"),
+ "tooltip", _("Show the saved bookmarks"),
NULL);
g_object_connect (action,
"signal::populate-popup",
action = g_object_new (KATZE_TYPE_ARRAY_ACTION,
"name", "Window",
- "label", _("Window"),
+ "label", _("_Window"),
"stock-id", GTK_STOCK_INDEX,
"tooltip", _("Show a list of all open tabs"),
"array", browser->proxy_array,
#ifdef WEBKIT_CHECK_VERSION
#if WEBKIT_CHECK_VERSION (1, 0, 3)
button = katze_property_proxy (settings, "enable-developer-extras", NULL);
- gtk_button_set_label (GTK_BUTTON (button), _("Developer tools"));
+ gtk_button_set_label (GTK_BUTTON (button), _("Enable developer tools"));
SPANNED_ADD (button, 0, 1, 3, 4);
#endif
#endif
WIDGET_ADD (button, 1, 2, 3, 4);
/* Page "Network" */
- /*PAGE_NEW (GTK_STOCK_NETWORK, _("Network"));
+ #if 0
+ PAGE_NEW (GTK_STOCK_NETWORK, _("Network"));
FRAME_NEW (_("Network"));
TABLE_NEW (2, 2);
label = katze_property_label (settings, "http-proxy");
gtk_box_pack_start (GTK_BOX (hbox), entry, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), gtk_label_new (_("MB")),
FALSE, FALSE, 0);
- FILLED_ADD (hbox, 1, 2, 1, 2);*/
+ FILLED_ADD (hbox, 1, 2, 1, 2);
+ #endif
/* Page "Privacy" */
PAGE_NEW (GTK_STOCK_INDEX, _("Privacy"));
- /*FRAME_NEW (_("Web Cookies"));
+ #if 0
+ FRAME_NEW (_("Web Cookies"));
TABLE_NEW (3, 2);
label = katze_property_label (settings, "accept-cookies");
INDENTED_ADD (label, 0, 1, 0, 1);
gtk_box_pack_start (GTK_BOX (hbox), entry, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), gtk_label_new (_("days")),
FALSE, FALSE, 0);
- FILLED_ADD (hbox, 1, 2, 2, 3);*/
+ FILLED_ADD (hbox, 1, 2, 2, 3);
+ #endif
FRAME_NEW (_("History"));
TABLE_NEW (3, 2);
button = katze_property_proxy (settings, "remember-last-visited-pages", NULL);
#define STOCK_PAGE_HOLDER GTK_STOCK_ORIENTATION_PORTRAIT
#define STOCK_STYLE "gnome-settings-theme"
#define STOCK_STYLES "gnome-settings-theme"
-#define STOCK_OPEN_IN_TAB "stock_new-tab"
-#define STOCK_OPEN_IN_WINDOW "stock_new-window"
#define STOCK_TRANSFER "package"
#define STOCK_TRANSFERS "package"