[gtk+/gtk-3-22] PlacesSidebar: Reuse strings, mark for translation



commit 9f1d57e032c47f6de36ab4567185a1c420bb6da5
Author: Daniel Boles <dboles src gnome org>
Date:   Tue Aug 29 20:04:45 2017 +0100

    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

 gtk/gtkplacessidebar.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 289799f..46893d6 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]