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

gEDA-cvs: CVS update: x_dialog.nw



  User: pbernaud
  Date: 06/01/11 09:44:30

  Modified:    .        x_dialog.nw x_menus.nw x_multiattrib.nw
                        x_pagesel.nw
  Log:
  Marked strings in C structures as translatable with new macro N_()
  
  
  
  
  Revision  Changes    Path
  1.38      +9 -9      eda/geda/devel/gschem/noweb/x_dialog.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_dialog.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/noweb/x_dialog.nw,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -b -r1.37 -r1.38
  --- x_dialog.nw	17 Dec 2005 13:59:13 -0000	1.37
  +++ x_dialog.nw	11 Jan 2006 14:44:30 -0000	1.38
  @@ -1095,11 +1095,11 @@
     struct line_type {
       gchar *str;
       OBJECT_TYPE type;
  -  } types[] = { { "Solid",   TYPE_SOLID },
  -                { "Dotted",  TYPE_DOTTED },
  -                { "Dashed",  TYPE_DASHED },
  -                { "Center",  TYPE_CENTER },
  -                { "Phantom", TYPE_PHANTOM } };
  +  } types[] = { { N_("Solid"),   TYPE_SOLID },
  +                { N_("Dotted"),  TYPE_DOTTED },
  +                { N_("Dashed"),  TYPE_DASHED },
  +                { N_("Center"),  TYPE_CENTER },
  +                { N_("Phantom"), TYPE_PHANTOM } };
     gint i;
   
     menu  = gtk_menu_new ();
  @@ -1523,10 +1523,10 @@
     struct fill_type {
       gchar *str;
       OBJECT_FILLING type;
  -  } types[] = { { "Hollow", FILLING_HOLLOW },
  -                { "Filled", FILLING_FILL },
  -                { "Mesh",   FILLING_MESH },
  -                { "Hatch",  FILLING_HATCH } };
  +  } types[] = { { N_("Hollow"), FILLING_HOLLOW },
  +                { N_("Filled"), FILLING_FILL },
  +                { N_("Mesh"),   FILLING_MESH },
  +                { N_("Hatch"),  FILLING_HATCH } };
     gint i;
   
     menu  = gtk_menu_new ();
  
  
  
  1.25      +22 -22    eda/geda/devel/gschem/noweb/x_menus.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_menus.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/noweb/x_menus.nw,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -b -r1.24 -r1.25
  --- x_menus.nw	21 Feb 2005 00:54:00 -0000	1.24
  +++ x_menus.nw	11 Jan 2006 14:44:30 -0000	1.25
  @@ -69,29 +69,27 @@
   /*   These are the items which appear upon clicking the right mouse button. */
   <<x_menus.c : popup menu items>>=
   static GtkItemFactoryEntry popup_items[] = {
  -  {"/Add Net", 		NULL, i_callback_add_net, 0, NULL},
  -  {"/Add Attribute...", 	NULL, i_callback_add_attribute, 0, NULL},
  -  {"/Add Component...", 	NULL, i_callback_add_component, 0, NULL},
  -  {"/Add Bus", 		NULL, i_callback_add_bus, 0, NULL},
  -  {"/Add Text", 		NULL, i_callback_add_text, 0, NULL},
  -  {"/sep1", NULL, NULL, 0, "<Separator>"},
  -  {"/Zoom In",            NULL, i_callback_view_zoom_in, 0, NULL},
  -  {"/Zoom Out",           NULL, i_callback_view_zoom_out, 0, NULL},
  -  {"/Zoom Box",           NULL, i_callback_view_zoom_box, 0, NULL},
  -  {"/Zoom Extents",        NULL, i_callback_view_zoom_extents, 0, NULL},
  -  {"/sep1", NULL, NULL, 0, "<Separator>"},
  -  {"/Select", 		NULL, i_callback_edit_select, 0, NULL},
  -  {"/Edit...", 		NULL, i_callback_edit_edit, 0, NULL},
  -  {"/Copy", 		NULL, i_callback_edit_copy, 0, NULL},
  -  {"/Move", 		NULL, i_callback_edit_move, 0, NULL},
  -  {"/Delete", 		NULL, i_callback_edit_delete, 0, NULL},
  -
  +  { N_("/Add Net"), 		      NULL, i_callback_add_net,           0, NULL},
  +  { N_("/Add Attribute..."), 	NULL, i_callback_add_attribute,     0, NULL},
  +  { N_("/Add Component..."), 	NULL, i_callback_add_component,     0, NULL},
  +  { N_("/Add Bus"), 		      NULL, i_callback_add_bus,           0, NULL},
  +  { N_("/Add Text"), 		      NULL, i_callback_add_text,          0, NULL},
  +  { "/sep1", NULL, NULL, 0, "<Separator>"},
  +  { N_("/Zoom In"),           NULL, i_callback_view_zoom_in,      0, NULL},
  +  { N_("/Zoom Out"),          NULL, i_callback_view_zoom_out,     0, NULL},
  +  { N_("/Zoom Box"),          NULL, i_callback_view_zoom_box,     0, NULL},
  +  { N_("/Zoom Extents"),      NULL, i_callback_view_zoom_extents, 0, NULL},
  +  { "/sep1", NULL, NULL, 0, "<Separator>"},
  +  { N_("/Select"), 		        NULL, i_callback_edit_select,       0, NULL},
  +  { N_("/Edit..."), 		      NULL, i_callback_edit_edit,         0, NULL},
  +  { N_("/Copy"), 		          NULL, i_callback_edit_copy,         0, NULL},
  +  { N_("/Move"), 		          NULL, i_callback_edit_move,         0, NULL},
  +  { N_("/Delete"), 		        NULL, i_callback_edit_delete,       0, NULL},
     /* Menu items for hierarchy added by SDB 1.9.2005.  */
     {"/sep1", NULL, NULL, 0, "<Separator>"},
  -  {"/Down Schematic", 	NULL, i_callback_hierarchy_down_schematic, 0, NULL},
  -  {"/Down Symbol", 	NULL, i_callback_hierarchy_down_symbol, 0, NULL},
  -  {"/Up", 		NULL, i_callback_hierarchy_up, 0, NULL},
  -
  +  {N_("/Down Schematic"), NULL, i_callback_hierarchy_down_schematic, 0, NULL},
  +  {N_("/Down Symbol"),    NULL, i_callback_hierarchy_down_symbol,    0, NULL},
  +  {N_("/Up"),             NULL, i_callback_hierarchy_up,             0, NULL},
   };  
   
   
  @@ -335,7 +333,9 @@
     */
     item_factory = gtk_item_factory_new(GTK_TYPE_MENU, "<popup>",
                                         accel_group);
  -
  +  gtk_item_factory_set_translate_func (item_factory,
  +                                       (GtkTranslateFunc)gettext,
  +                                       NULL, NULL);
     /* This function creates the pop-up menu itself & attaches it to the
        GtkItemFactory. Pass the item factory,
        the number of items in the array, the array itself, and any
  
  
  
  1.24      +3 -3      eda/geda/devel/gschem/noweb/x_multiattrib.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_multiattrib.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/noweb/x_multiattrib.nw,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -b -r1.23 -r1.24
  --- x_multiattrib.nw	17 Dec 2005 16:14:43 -0000	1.23
  +++ x_multiattrib.nw	11 Jan 2006 14:44:30 -0000	1.24
  @@ -1423,8 +1423,8 @@
       void (*callback)(void);
     };
     struct menuitem_t menuitems[] = {
  -    { "Duplicate", G_CALLBACK (multiattrib_callback_popup_duplicate) },
  -    { "Delete",    G_CALLBACK (multiattrib_callback_popup_delete)    },
  +    { N_("Duplicate"), G_CALLBACK (multiattrib_callback_popup_duplicate) },
  +    { N_("Delete"),    G_CALLBACK (multiattrib_callback_popup_delete)    },
       { NULL,        NULL                                              } };
     struct menuitem_t *tmp;
     
  
  
  
  1.13      +7 -7      eda/geda/devel/gschem/noweb/x_pagesel.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_pagesel.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/noweb/x_pagesel.nw,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- x_pagesel.nw	22 Feb 2005 17:57:54 -0000	1.12
  +++ x_pagesel.nw	11 Jan 2006 14:44:30 -0000	1.13
  @@ -498,12 +498,12 @@
       void (*callback)(void);
     };
     struct menuitem_t menuitems[] = {
  -    { "New Page",     G_CALLBACK (pagesel_callback_popup_new_page)     },
  -    { "Open Page...", G_CALLBACK (pagesel_callback_popup_open_page)    },
  +    { N_("New Page"),     G_CALLBACK (pagesel_callback_popup_new_page)     },
  +    { N_("Open Page..."), G_CALLBACK (pagesel_callback_popup_open_page)    },
       { "-",            NULL                                             },
  -    { "Save Page",    G_CALLBACK (pagesel_callback_popup_save_page)    },
  -    { "Close Page",   G_CALLBACK (pagesel_callback_popup_close_page)   },
  -    { "Discard Page", G_CALLBACK (pagesel_callback_popup_discard_page) },
  +    { N_("Save Page"),    G_CALLBACK (pagesel_callback_popup_save_page)    },
  +    { N_("Close Page"),   G_CALLBACK (pagesel_callback_popup_close_page)   },
  +    { N_("Discard Page"), G_CALLBACK (pagesel_callback_popup_discard_page) },
       { NULL,           NULL                                             } };
     struct menuitem_t *tmp;