PlacesSidebar: Reuse strings, mark for translation
authorDaniel Boles <dboles@src.gnome.org>
Tue, 29 Aug 2017 19:04:45 +0000 (20:04 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Tue, 29 Aug 2017 19:09:11 +0000 (20:09 +0100)
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

gtk/gtkplacessidebar.c

index 289799ffb4d39d4ca4379bd5f5801afa6a947ce6..46893d6d4baa1111f0ea8c574260601861e9dc0a 100644 (file)
@@ -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);