parent
d6e2b9d935
commit
c068650495
@ -58,22 +58,22 @@ def importData(database, dirname, callback=None, cl=0, use_trans=True):
|
|||||||
other_database.load(name, callback)
|
other_database.load(name, callback)
|
||||||
except:
|
except:
|
||||||
if cl:
|
if cl:
|
||||||
print "Error: %s could not be opened. Exiting." % filename
|
print "Error: %s could not be opened. Exiting." % name
|
||||||
else:
|
else:
|
||||||
ErrorDialog(_("%s could not be opened") % filename)
|
ErrorDialog(_("%s could not be opened") % name)
|
||||||
return
|
return
|
||||||
|
|
||||||
if not other_database.version_supported():
|
if not other_database.version_supported():
|
||||||
if cl:
|
if cl:
|
||||||
print "Error: %s could not be opened.\n%s Exiting." \
|
print "Error: %s could not be opened.\n%s Exiting." \
|
||||||
% (filename,
|
% (name,
|
||||||
_("The database version is not supported "
|
_("The database version is not supported "
|
||||||
"by this version of GRAMPS.\n"\
|
"by this version of GRAMPS.\n"\
|
||||||
"Please upgrade to the corresponding version "
|
"Please upgrade to the corresponding version "
|
||||||
"or use XML for porting data between different "
|
"or use XML for porting data between different "
|
||||||
"database versions."))
|
"database versions."))
|
||||||
else:
|
else:
|
||||||
ErrorDialog(_("%s could not be opened") % filename,
|
ErrorDialog(_("%s could not be opened") % name,
|
||||||
_("The Database version is not supported "
|
_("The Database version is not supported "
|
||||||
"by this version of GRAMPS."))
|
"by this version of GRAMPS."))
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user