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 4989950eea
commit d1de8e22cc
3 changed files with 10 additions and 5 deletions

View File

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

View File

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

View File

@ -567,12 +567,12 @@ def exportData(database, filename, progress, pbar, fbar, sbar):
try:
g = open(filename,"w")
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)
progress.destroy()
return
except:
GnomeErrorDialog(_("%s could not be opened\n") % filename)
GnomeErrorDialog(_("Could not create %s") % filename)
progress.destroy()
return