Dialog improvements

svn: r1320
This commit is contained in:
Don Allingham 2003-02-27 00:37:46 +00:00
parent 7f70415166
commit a89f43b5a8
2 changed files with 10 additions and 6 deletions

View File

@ -423,8 +423,9 @@ class Marriage:
family.setId(idval) family.setId(idval)
Utils.modified() Utils.modified()
else: else:
msg1 = _("GRAMPS ID value was not changed.") WarningDialog(_("GRAMPS ID value was not changed."),
WarningDialog("%s" % msg1) _('The GRAMPS ID that you chose for this '
'relationship is already being used.'))
relation = self.type_field.entry.get_text() relation = self.type_field.entry.get_text()
father = self.family.getFather() father = self.family.getFather()

View File

@ -100,10 +100,13 @@ def importData(database, filename, callback):
return 0 return 0
except ValueError, msg: except ValueError, msg:
if str(msg)[0:16] == "Incorrect length": if str(msg)[0:16] == "Incorrect length":
WarningDialog(_("Your database has encountered an error in the library " WarningDialog(_("A Data Compression Problem Was Encountered"),
"that compresses the data.\nYour data should be okay, but " _("Your database has encountered an error in the library "
"you may want to consider disabling compression.\n" "that compresses the data. Your data should be okay, but "
"This can be disabled in the Properties dialog.")) "you may want to consider disabling compression. "
"This can be disabled in the Properties dialog. Once you "
"have disabled compression, this error will go away after "
"the next time you save the database."))
else: else:
import DisplayTrace import DisplayTrace
DisplayTrace.DisplayTrace() DisplayTrace.DisplayTrace()