Fix date handling with "ABT" in non-english languages
svn: r571
This commit is contained in:
parent
4989950eea
commit
d1de8e22cc
@ -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*"
|
||||||
|
|
||||||
|
@ -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)
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user