[libgda/gtk3] Correction for bug #634737



commit cb53a2e9c24684d108c274ab998f24a4742fcb85
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sun Nov 14 14:21:55 2010 +0100

    Correction for bug #634737

 tools/browser/browser-window.c                     |   36 ++++++++++----------
 .../data-manager/data-manager-perspective.c        |    4 +-
 tools/browser/query-exec/query-exec-perspective.c  |    2 +-
 .../schema-browser/schema-browser-perspective.c    |    4 +-
 tools/browser/schema-browser/table-info.c          |    2 +-
 5 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/tools/browser/browser-window.c b/tools/browser/browser-window.c
index 0562256..b531085 100644
--- a/tools/browser/browser-window.c
+++ b/tools/browser/browser-window.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009 Vivien Malerba
+ * Copyright (C) 2009 - 2010 Vivien Malerba
  *
  * This Library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public License as
@@ -273,27 +273,27 @@ static const GtkToggleActionEntry ui_toggle_actions [] =
 };
 
 static const GtkActionEntry ui_actions[] = {
-        { "Connection", NULL, "_Connection", NULL, "Connection", NULL },
-        { "ConnectionOpen", GTK_STOCK_CONNECT, "_Connect", NULL, "Open a connection", G_CALLBACK (connection_open_cb)},
+        { "Connection", NULL, N_("_Connection"), NULL, N_("Connection"), NULL },
+        { "ConnectionOpen", GTK_STOCK_CONNECT, N_("_Connect"), NULL, N_("Open a connection"), G_CALLBACK (connection_open_cb)},
         { "ConnectionBind", NULL, N_("_Bind connection"), "<control>I", N_("Use connection to create\n"
 						    "a new binding connection to access data\n"
 						    "from multiple databases at once"), G_CALLBACK (connection_bind_cb)},
-        { "ConnectionProps", GTK_STOCK_PROPERTIES, "_Properties", NULL, "Connection properties", G_CALLBACK (connection_properties_cb)},
-        { "ConnectionList", NULL, "_Connections list", NULL, "Connections list", G_CALLBACK (connection_list_cb)},
-        { "ConnectionMetaSync", GTK_STOCK_REFRESH, "_Fetch meta data", NULL, "Fetch meta data", G_CALLBACK (connection_meta_update_cb)},
-        { "ConnectionClose", GTK_STOCK_CLOSE, "_Close connection", NULL, "Close this connection", G_CALLBACK (connection_close_cb)},
-        { "Quit", GTK_STOCK_QUIT, "_Quit", NULL, "Quit", G_CALLBACK (quit_cb)},
-        { "Edit", NULL, "_Edit", NULL, "Edit", NULL },
-        { "Display", NULL, "_Display", NULL, "Display", NULL },
-        { "Perspective", NULL, "_Perspective", NULL, "Perspective", NULL },
-        { "Window", NULL, "_Window", NULL, "Window", NULL },
-        { "WindowNew", STOCK_NEW_WINDOW, "_New window", "<control>N", "Open a new window for current connection", G_CALLBACK (window_new_cb)},
-        { "WindowNewOthers", NULL, "New window for _connection", NULL, "Open a new window for a connection", NULL},
-        { "WindowClose", GTK_STOCK_CLOSE, "_Close", "", "Close this window", G_CALLBACK (window_close_cb)},
-        { "Help", NULL, "_Help", NULL, "Help", NULL },
-        { "HelpAbout", GTK_STOCK_ABOUT, "_About", NULL, "About", G_CALLBACK (about_cb) },
+        { "ConnectionProps", GTK_STOCK_PROPERTIES, N_("_Properties"), NULL, N_("Connection properties"), G_CALLBACK (connection_properties_cb)},
+        { "ConnectionList", NULL, N_("_Connections list"), NULL, N_("Connections list"), G_CALLBACK (connection_list_cb)},
+        { "ConnectionMetaSync", GTK_STOCK_REFRESH, N_("_Fetch meta data"), NULL, N_("Fetch meta data"), G_CALLBACK (connection_meta_update_cb)},
+        { "ConnectionClose", GTK_STOCK_CLOSE, N_("_Close connection"), NULL, N_("Close this connection"), G_CALLBACK (connection_close_cb)},
+        { "Quit", GTK_STOCK_QUIT, N_("_Quit"), NULL, N_("Quit"), G_CALLBACK (quit_cb)},
+        { "Edit", NULL, N_("_Edit"), NULL, N_("Edit"), NULL },
+        { "Display", NULL, N_("_Display"), NULL, N_("Display"), NULL },
+        { "Perspective", NULL, N_("_Perspective"), NULL, N_("Perspective"), NULL },
+        { "Window", NULL, N_("_Window"), NULL, N_("Window"), NULL },
+        { "WindowNew", STOCK_NEW_WINDOW, N_("_New window"), "<control>N", N_("Open a new window for current connection"), G_CALLBACK (window_new_cb)},
+        { "WindowNewOthers", NULL, N_("New window for _connection"), NULL, N_("Open a new window for a connection"), NULL},
+        { "WindowClose", GTK_STOCK_CLOSE, N_("_Close"), NULL, N_("Close this window"), G_CALLBACK (window_close_cb)},
+        { "Help", NULL, N_("_Help"), NULL, N_("Help"), NULL },
+        { "HelpAbout", GTK_STOCK_ABOUT, N_("_About"), NULL, N_("About"), G_CALLBACK (about_cb) },
 #ifdef HAVE_GDU
-        { "HelpManual", GTK_STOCK_HELP, "_Manual", "F1", "Manual", G_CALLBACK (manual_cb) },
+        { "HelpManual", GTK_STOCK_HELP, N_("_Manual"), "F1", N_("Manual"), G_CALLBACK (manual_cb) },
 #endif
 	{ "TransactionBegin", BROWSER_STOCK_BEGIN, N_("Begin"), NULL, N_("Begin a new transaction"),
           G_CALLBACK (transaction_begin_cb)},
diff --git a/tools/browser/data-manager/data-manager-perspective.c b/tools/browser/data-manager/data-manager-perspective.c
index bfd2770..a12ed0f 100644
--- a/tools/browser/data-manager/data-manager-perspective.c
+++ b/tools/browser/data-manager/data-manager-perspective.c
@@ -409,8 +409,8 @@ static const GtkToggleActionEntry ui_toggle_actions [] =
 };
 
 static GtkActionEntry ui_actions[] = {
-        { "DataManagerMenu", NULL, "_Manager", NULL, "ManagerMenu", NULL },
-        { "NewDataManager", GTK_STOCK_NEW, "_New data manager", "<control>T", "New data manager",
+        { "DataManagerMenu", NULL, N_("_Manager"), NULL, N_("Manager"), NULL },
+        { "NewDataManager", GTK_STOCK_NEW, N_("_New data manager"), "<control>T", N_("New data manager"),
           G_CALLBACK (manager_new_cb)},
 };
 
diff --git a/tools/browser/query-exec/query-exec-perspective.c b/tools/browser/query-exec/query-exec-perspective.c
index b7a5a2d..756edfc 100644
--- a/tools/browser/query-exec/query-exec-perspective.c
+++ b/tools/browser/query-exec/query-exec-perspective.c
@@ -388,7 +388,7 @@ static const GtkToggleActionEntry ui_toggle_actions [] =
 };
 
 static GtkActionEntry ui_actions[] = {
-        { "QueryExecMenu", NULL, N_("_Query"), NULL, "QueryExecMenu", NULL },
+        { "QueryExecMenu", NULL, N_("_Query"), NULL, N_("Query"), NULL },
         { "QueryExecItem1", STOCK_CONSOLE, N_("_New editor"), "<control>T", N_("Open a new query editor"),
           G_CALLBACK (query_exec_add_cb)},
 };
diff --git a/tools/browser/schema-browser/schema-browser-perspective.c b/tools/browser/schema-browser/schema-browser-perspective.c
index 6880af6..c917acc 100644
--- a/tools/browser/schema-browser/schema-browser-perspective.c
+++ b/tools/browser/schema-browser/schema-browser-perspective.c
@@ -320,8 +320,8 @@ static const GtkToggleActionEntry ui_toggle_actions [] =
 
 static GtkActionEntry ui_actions[] = {
 #ifdef HAVE_GOOCANVAS
-        { "Schema", NULL, "_Schema", NULL, "Schema", NULL },
-        { "NewDiagram", GTK_STOCK_ADD, "_New Diagram", NULL, "Create a new diagram",
+        { "Schema", NULL, N_("_Schema"), NULL, N_("Schema"), NULL },
+        { "NewDiagram", GTK_STOCK_ADD, N_("_New Diagram"), NULL, N_("Create a new diagram"),
           G_CALLBACK (action_create_diagram_cb)},
 #endif
 };
diff --git a/tools/browser/schema-browser/table-info.c b/tools/browser/schema-browser/table-info.c
index e168879..eadca0c 100644
--- a/tools/browser/schema-browser/table-info.c
+++ b/tools/browser/schema-browser/table-info.c
@@ -934,7 +934,7 @@ action_insert_cb (G_GNUC_UNUSED GtkAction *action, TableInfo *tinfo)
 
 
 static GtkActionEntry ui_actions[] = {
-	{ "Table", NULL, "_Table", NULL, "Table", NULL },
+	{ "Table", NULL, N_("_Table"), NULL, N_("Table"), NULL },
 	{ "AddToFav", STOCK_ADD_BOOKMARK, N_("Add to _Favorites"), NULL, N_("Add table to favorites"),
 	  G_CALLBACK (action_add_to_fav_cb)},
 	{ "ViewContents", GTK_STOCK_EDIT, N_("_Contents"), NULL, N_("View table's contents"),



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