ayttm-commits
[Top][All Lists]
Advanced

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

[Ayttm-commits] CVS: ayttm/src status.c,1.5,1.6


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/src status.c,1.5,1.6
Date: Mon, 30 Dec 2002 14:12:14 -0500

Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv10117/src

Modified Files:
        status.c 
Log Message:
update translation


Index: status.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/status.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- status.c    30 Dec 2002 18:15:09 -0000      1.5
+++ status.c    30 Dec 2002 19:12:12 -0000      1.6
@@ -1713,32 +1713,41 @@
 }
 
 static GtkItemFactoryEntry menu_items[] = {
-  { "/_File",                  NULL,         NULL, 0, "<Branch>" },
-  { "/File/_Import",           NULL,       NULL, 0, NULL },
-  { "/File/_Set profile",      NULL,       NULL, 0, NULL },
-  { "/File/_Set status",       NULL,       NULL, 0, NULL },
-  { "/File/---",               NULL,         NULL, 0, "<Separator>" },
-  { "/File/Sign o_n all",      "<control>A", eb_sign_on_all, 0, NULL },
-  { "/File/Sign o_ff all",     "<control>F", eb_sign_off_all, 0, NULL },
-  { "/File/---",               NULL,         NULL, 0, "<Separator>" },
-  { "/File/_Quit",             "<control>Q", delete_event, 0, NULL },
-  { "/_Tools",                 "NULL", NULL, 0, "<Branch>" },
-  { "/Tools/_New group chat...",NULL, launch_group_chat, 0, NULL },
-  { "/Tools/_Set as away",     NULL, NULL, 0, NULL },
-  { "/Tools/---",              NULL, NULL, 0, "<Separator>" },
-  { "/Tools/_Add a contact account...",                
+  { N_("/_File"),                      NULL,       NULL, 0, "<Branch>" },
+  { N_("/File/_Import"),               NULL,       NULL, 0, NULL },
+  { N_("/File/_Set profile"),  NULL,       NULL, 0, NULL },
+  { N_("/File/_Set status"),   NULL,       NULL, 0, NULL },
+  { N_("/File/---"),           NULL,         NULL, 0, "<Separator>" },
+  { N_("/File/Sign o_n all"),  "<control>A", eb_sign_on_all, 0, NULL },
+  { N_("/File/Sign o_ff all"), "<control>F", eb_sign_off_all, 0, NULL },
+  { N_("/File/---"),           NULL,         NULL, 0, "<Separator>" },
+  { N_("/File/_Quit"),         "<control>Q", delete_event, 0, NULL },
+  { N_("/_Tools"),                     "NULL", NULL, 0, "<Branch>" },
+  { N_("/Tools/_New group chat..."),NULL, launch_group_chat, 0, NULL },
+  { N_("/Tools/_Set as away"), NULL, NULL, 0, NULL },
+  { N_("/Tools/---"),          NULL, NULL, 0, "<Separator>" },
+  { N_("/Tools/_Add a contact account..."),            
                                NULL, add_callback, 0, NULL },
-  { "/Tools/Add a _group...",  NULL, add_group_callback, 0, NULL },
-  { "/Tools/---",              NULL,         NULL, 0, "<Separator>" },
-  { "/Tools/_Preferences...",  NULL, build_prefs_callback, 0, NULL },
-  { "/Tools/_Edit accounts",           
+  { N_("/Tools/Add a _group..."),      NULL, add_group_callback, 0, NULL },
+  { N_("/Tools/---"),          NULL,         NULL, 0, "<Separator>" },
+  { N_("/Tools/_Preferences..."),      NULL, build_prefs_callback, 0, NULL },
+  { N_("/Tools/_Edit accounts"),               
                                NULL, eb_edit_accounts, 0, NULL },
-  { "/_Help",                  NULL, NULL, 0, "<Branch>" },
-  { "/_Help/_About",           NULL, show_about, 0, NULL }
+  { N_("/_Help"),                      NULL, NULL, 0, "<Branch>" },
+  { N_("/_Help/_About"),               NULL, show_about, 0, NULL }
 };
 
 static GtkItemFactory *main_menu_factory = NULL;
 
+static gchar *menu_translate(const gchar *path, gpointer data)
+{
+       gchar *retval;
+
+       retval = gettext(path);
+
+       return retval;
+}
+
 void get_main_menu( GtkWidget  *window,
                     GtkWidget **menubar )
 {
@@ -1751,6 +1760,8 @@
   item_factory = gtk_item_factory_new (GTK_TYPE_MENU_BAR, "<main>", 
                                        accel_group);
   main_menu_factory = item_factory;
+  gtk_item_factory_set_translate_func(item_factory, menu_translate,
+                                           NULL, NULL);
   
   gtk_item_factory_create_items (item_factory, nmenu_items, menu_items, NULL);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]