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
This commit is contained in:
Daniel Boles 2017-08-29 20:04:45 +01:00
parent 07320200d1
commit 9f1d57e032

View File

@ -3545,13 +3545,13 @@ build_popup_menu_using_gmenu (GtkSidebarRow *row)
{ {
GMenu *menu = g_menu_new (); GMenu *menu = g_menu_new ();
GMenuItem *item; 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_item_set_action_and_target_value (item, "row.open", g_variant_new_int32(GTK_PLACES_OPEN_NORMAL));
g_menu_append_item (menu, item); 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_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); 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_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); g_menu_append_item (menu, item);
cloud_provider_menu = cloud_provider_proxy_get_menu_model (cloud_provider_proxy); cloud_provider_menu = cloud_provider_proxy_get_menu_model (cloud_provider_proxy);