Fix date handling with "ABT" in non-english languages

svn: r571
This commit is contained in:
Don Allingham 2001-11-18 23:39:34 +00:00
parent e1185f5142
commit e030fa8253
3 changed files with 10 additions and 5 deletions

View File

@ -314,7 +314,10 @@ class SingleDate:
_("aft") + '|' + \ _("aft") + '|' + \
_("aft\.") + '|' + \ _("aft\.") + '|' + \
_("bef\.") + '|' + \ _("bef\.") + '|' + \
_("bef") + ')' _("bef") + '|' + \
"abt" + '|' + \
"aft" + '|' + \
"bef" + ')'
start = "^\s*" + modifiers + "?\s*" start = "^\s*" + modifiers + "?\s*"

View File

@ -488,12 +488,14 @@ def on_ok_button1_clicked(obj):
filename = dbname.get_full_path(1) filename = dbname.get_full_path(1)
utils.destroy_passed_object(obj) utils.destroy_passed_object(obj)
if filename == "" or filename == None:
return
if getoldrev.get_active(): if getoldrev.get_active():
vc = VersionControl.RcsVersionControl(filename) vc = VersionControl.RcsVersionControl(filename)
VersionControl.RevisionSelect(database,filename,vc,load_revision) VersionControl.RevisionSelect(database,filename,vc,load_revision)
else: else:
if filename != "": read_file(filename)
read_file(filename)
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #

View File

@ -567,12 +567,12 @@ def exportData(database, filename, progress, pbar, fbar, sbar):
try: try:
g = open(filename,"w") g = open(filename,"w")
except IOError,msg: except IOError,msg:
msg = "%s\n%s" % (_("%s could not be opened\n") % filename,str(msg)) msg = "%s\n%s" % (_("Could not create %s") % filename,str(msg))
GnomeErrorDialog(msg) GnomeErrorDialog(msg)
progress.destroy() progress.destroy()
return return
except: except:
GnomeErrorDialog(_("%s could not be opened\n") % filename) GnomeErrorDialog(_("Could not create %s") % filename)
progress.destroy() progress.destroy()
return return