Message for place displays
svn: r1374
This commit is contained in:
parent
5d1897c379
commit
99a8c5f1dd
@ -144,7 +144,7 @@ class GedcomInfoDB:
|
||||
|
||||
try:
|
||||
file = "%s/gedcom.xml" % const.dataDir
|
||||
f = open(file,"r")
|
||||
f = open(file.encode('iso8859-1'),"r")
|
||||
except:
|
||||
return
|
||||
|
||||
|
@ -789,7 +789,7 @@ class GenericFilterList:
|
||||
# except:
|
||||
# return
|
||||
|
||||
f = open(self.file,'w')
|
||||
f = open(self.file.encode('iso8859-1'),'w')
|
||||
|
||||
f.write("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n")
|
||||
f.write('<filters>\n')
|
||||
|
@ -329,7 +329,7 @@ class MediaView:
|
||||
try:
|
||||
tfile,headers = u.retrieve(d)
|
||||
except IOError, msg:
|
||||
ErrorDialog(t,str(msg))
|
||||
ErrorDialog(_('Image import failed'),str(msg))
|
||||
return
|
||||
mime = Utils.get_mime_type(tfile)
|
||||
photo = RelLib.Photo()
|
||||
|
@ -649,7 +649,12 @@ class Gramps:
|
||||
elif page == 3:
|
||||
self.source_view.load_sources()
|
||||
elif page == 4:
|
||||
if len(self.db.getPlaceKeys()) > 2000:
|
||||
self.status_text(_('Updating display - this may take a few seconds...'))
|
||||
else:
|
||||
self.status_text(_('Updating display...'))
|
||||
self.place_view.load_places()
|
||||
self.modify_statusbar()
|
||||
self.place_loaded = 1
|
||||
elif page == 5:
|
||||
self.media_view.load_media()
|
||||
@ -671,7 +676,12 @@ class Gramps:
|
||||
elif page == 3:
|
||||
self.source_view.load_sources()
|
||||
elif page == 4:
|
||||
if len(self.db.getPlaceKeys()) > 2000:
|
||||
self.status_text(_('Updating display - this may take a few seconds...'))
|
||||
else:
|
||||
self.status_text(_('Updating display...'))
|
||||
self.place_view.load_places()
|
||||
self.modify_statusbar()
|
||||
self.place_loaded = 1
|
||||
else:
|
||||
self.media_view.load_media()
|
||||
@ -1117,9 +1127,14 @@ class Gramps:
|
||||
|
||||
def on_places_activate(self,obj):
|
||||
"""Switches to the places view"""
|
||||
if len(self.db.getPlaceKeys()) > 2000:
|
||||
self.status_text(_('Updating display - this may take a few seconds...'))
|
||||
else:
|
||||
self.status_text(_('Updating display...'))
|
||||
if self.place_loaded == 0:
|
||||
self.place_view.load_places()
|
||||
self.place_loaded = 1
|
||||
self.modify_statusbar()
|
||||
self.notebook.set_current_page(4)
|
||||
|
||||
def on_media_activate(self,obj):
|
||||
|
1515
src/po/template.po
1515
src/po/template.po
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user