From 4bdef5a7b6904e8f48896ceb22a6e923fbd7baec Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 10 Dec 2001 13:42:02 +0000 Subject: [PATCH] Fixed language translation problem in Date.py svn: r610 --- gramps/src/Date.py | 8 +++++++- gramps/src/EditPerson.glade | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gramps/src/Date.py b/gramps/src/Date.py index 3c0028611..714f0400c 100644 --- a/gramps/src/Date.py +++ b/gramps/src/Date.py @@ -314,6 +314,9 @@ class SingleDate: _("aft") : after, # And the untranslated versions for reading saved data from XML. "abt" : about, "about" : about, + "bef" : before, "bef." : before, + "aft." : after, "abt." : about, + "est." : about, "est" : about, "after" : after, "before": before } @@ -358,7 +361,10 @@ class SingleDate: if val == None: self.mode = SingleDate.exact else: - self.mode = SingleDate.m2v[string.lower(val)] + try: + self.mode = SingleDate.m2v[string.lower(val)] + except KeyError: + raise Date.Error,val def setMonth(self,val): if val > 12 or val < 0: diff --git a/gramps/src/EditPerson.glade b/gramps/src/EditPerson.glade index fcacb134c..897cefcca 100644 --- a/gramps/src/EditPerson.glade +++ b/gramps/src/EditPerson.glade @@ -2204,6 +2204,7 @@ select_row on_event_select_row + True Fri, 01 Dec 2000 02:58:20 GMT