From bd002e9a7b5104ab6a536487e3e3507f3ea0b744 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 29 Apr 2009 00:16:26 +0200 Subject: [PATCH] Fix 'Refresh' menu item localization in the context menu --- midori/midori-view.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 426271e5..060c7fb4 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -25,14 +25,6 @@ #include #include -#if GLIB_CHECK_VERSION (2, 18, 0) - #define D_(__domain, __message) g_dgettext (__domain, __message) -#elif ENABLE_NLS - #define D_(__domain, __message) dgettext (__domain, __message) -#else - #define D_(__domain, __message) __message -#endif - /* This is unstable API, so we need to declare it */ gchar* webkit_web_view_get_selected_text (WebKitWebView* web_view); @@ -1111,8 +1103,12 @@ webkit_web_view_populate_popup_cb (WebKitWebView* web_view, /* hack to localize menu item */ if (GTK_IS_BIN (menuitem)) { - label = gtk_bin_get_child (GTK_BIN (menuitem)); - gtk_label_set_label (GTK_LABEL (label), D_("gtk20", "_Refresh")); + GtkStockItem stock_item; + if (gtk_stock_lookup (GTK_STOCK_REFRESH, &stock_item)) + { + label = gtk_bin_get_child (GTK_BIN (menuitem)); + gtk_label_set_label (GTK_LABEL (label), stock_item.label); + } } g_list_free (items); menuitem = gtk_image_menu_item_new_with_mnemonic (_("Undo Close Tab"));