geography : avoid multiple translation and fix a bug with variable referenced before assignment

svn: r17274
This commit is contained in:
Serge Noiraud
2011-04-26 14:16:03 +00:00
parent a2822d3fdf
commit ea1e1c2fc1
5 changed files with 13 additions and 12 deletions

View File

@@ -315,7 +315,7 @@ class GeoEvents(GeoGraphyView):
itemoption.set_title(message)
itemoption.show()
add_item.set_submenu(itemoption)
modify = gtk.MenuItem(_("Edit event"))
modify = gtk.MenuItem(_("Edit Event"))
modify.show()
modify.connect("activate", self.edit_event,
event, lat, lon, prevmark)
@@ -334,7 +334,7 @@ class GeoEvents(GeoGraphyView):
itemoption.set_title(message)
itemoption.show()
add_item.set_submenu(itemoption)
modify = gtk.MenuItem(_("Edit event"))
modify = gtk.MenuItem(_("Edit Event"))
modify.show()
modify.connect("activate", self.edit_event,
event, lat, lon, mark)
@@ -357,7 +357,7 @@ class GeoEvents(GeoGraphyView):
itemoption.set_title(message)
itemoption.show()
add_item.set_submenu(itemoption)
modify = gtk.MenuItem(_("Edit event"))
modify = gtk.MenuItem(_("Edit Event"))
modify.show()
modify.connect("activate", self.edit_event, event, lat, lon, prevmark)
itemoption.append(modify)