Fixed language translation problem in Date.py

svn: r610
This commit is contained in:
Don Allingham 2001-12-10 13:42:02 +00:00
parent 7701714b77
commit 4bdef5a7b6
2 changed files with 8 additions and 1 deletions

View File

@ -314,6 +314,9 @@ class SingleDate:
_("aft") : after, _("aft") : after,
# And the untranslated versions for reading saved data from XML. # And the untranslated versions for reading saved data from XML.
"abt" : about, "about" : about, "abt" : about, "about" : about,
"bef" : before, "bef." : before,
"aft." : after, "abt." : about,
"est." : about, "est" : about,
"after" : after, "before": before "after" : after, "before": before
} }
@ -358,7 +361,10 @@ class SingleDate:
if val == None: if val == None:
self.mode = SingleDate.exact self.mode = SingleDate.exact
else: else:
try:
self.mode = SingleDate.m2v[string.lower(val)] self.mode = SingleDate.m2v[string.lower(val)]
except KeyError:
raise Date.Error,val
def setMonth(self,val): def setMonth(self,val):
if val > 12 or val < 0: if val > 12 or val < 0:

View File

@ -2204,6 +2204,7 @@
<signal> <signal>
<name>select_row</name> <name>select_row</name>
<handler>on_event_select_row</handler> <handler>on_event_select_row</handler>
<after>True</after>
<last_modification_time>Fri, 01 Dec 2000 02:58:20 GMT</last_modification_time> <last_modification_time>Fri, 01 Dec 2000 02:58:20 GMT</last_modification_time>
</signal> </signal>
<signal> <signal>