Geography : use the same date format in events, person and family map views.
svn: r17577
This commit is contained in:
parent
ed57184969
commit
5c72bafc41
@ -58,6 +58,7 @@ import gen.lib
|
||||
import Utils
|
||||
import config
|
||||
import Errors
|
||||
import DateHandler
|
||||
from gen.display.name import displayer as _nd
|
||||
from PlaceUtils import conv_lat_lon
|
||||
from gui.views.pageview import PageView
|
||||
@ -330,7 +331,10 @@ class GeoEvents(GeoGraphyView):
|
||||
self.add_place_bubble_message(event, lat, lon,
|
||||
marks, menu, message, mark)
|
||||
oldplace = mark[0]
|
||||
message = "(%s) %s : %s" % (mark[6], gen.lib.EventType( mark[7] ), mark[5] )
|
||||
evt = self.dbstate.db.get_event_from_gramps_id(mark[10])
|
||||
# format the date as described in preferences.
|
||||
date = DateHandler.displayer.display(evt.get_date_object())
|
||||
message = "(%s) %s : %s" % (date, gen.lib.EventType( mark[7] ), mark[5] )
|
||||
prevmark = mark
|
||||
add_item = gtk.MenuItem(message)
|
||||
add_item.show()
|
||||
|
@ -452,7 +452,6 @@ class GeoPerson(GeoGraphyView):
|
||||
(father_name, mother_name) = self._get_father_and_mother_name(evt)
|
||||
message = "(%s) %s : %s - %s" % ( date, mark[7], father_name, mother_name )
|
||||
else:
|
||||
evt = self.dbstate.db.get_event_from_gramps_id(mark[10])
|
||||
descr = evt.get_description()
|
||||
if descr == "":
|
||||
descr = _('No description')
|
||||
|
Loading…
Reference in New Issue
Block a user