From: Daniel Boles Date: Tue, 29 Aug 2017 19:04:45 +0000 (+0100) Subject: PlacesSidebar: Reuse strings, mark for translation X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~272 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9f1d57e032c47f6de36ab4567185a1c420bb6da5;p=gtk%2B3.0.git PlacesSidebar: Reuse strings, mark for translation The new menu items were not marked for translation, had no mnemonics, and were not title-cased. Reuse the strings that we already had for the buttons shortly down the file, and mark these for translation. https://bugzilla.gnome.org/show_bug.cgi?id=786123 --- diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 289799ffb4..46893d6d4b 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -3545,13 +3545,13 @@ build_popup_menu_using_gmenu (GtkSidebarRow *row) { GMenu *menu = g_menu_new (); GMenuItem *item; - item = g_menu_item_new ("_Open", "row.open"); + item = g_menu_item_new (_("_Open"), "row.open"); g_menu_item_set_action_and_target_value (item, "row.open", g_variant_new_int32(GTK_PLACES_OPEN_NORMAL)); g_menu_append_item (menu, item); - item = g_menu_item_new ("Open in new tab", "row.open-other"); + item = g_menu_item_new (_("Open in New _Tab"), "row.open-other"); g_menu_item_set_action_and_target_value (item, "row.open-other", g_variant_new_int32(GTK_PLACES_OPEN_NEW_TAB)); g_menu_append_item (menu, item); - item = g_menu_item_new ("Open in new window", "row.open-other"); + item = g_menu_item_new (_("Open in New _Window"), "row.open-other"); g_menu_item_set_action_and_target_value (item, "row.open-other", g_variant_new_int32(GTK_PLACES_OPEN_NEW_WINDOW)); g_menu_append_item (menu, item); cloud_provider_menu = cloud_provider_proxy_get_menu_model (cloud_provider_proxy);