From: Nick H. <nic...@ho...> - 2013-08-16 13:31:34
|
On 16/08/13 11:40, Vassilii Khachaturov wrote: > On 16.08.2013 13:19, Tony Proctor wrote: >> > >> >Would you allow filtering on the numeric ISO-format date, or are you >> >considering allowing some English day/month names in the validated forms (as >> >in GEDCOM)? If the latter then is this going to be acceptable in non-English >> >locales? >> > >> > Tony Proctor >> > > See also bug #4620: date rule filters (before 1234, etc.) don't work > across LANG switch > about persistency of filters using non-English locale names. At the moment, we use the standard Gramps date parser to obtain a Date object from the text the user enters into the filter. This allows ranges, spans, dual dates and different calendars. The parser is locale specific, but I think the ISO format is recognised in every locale. The matching is actually performed by the Date object match method. The problem is that the filter arguments are stored as the text entered by the user and not as a representation of the Date object. Looking at #4620, Doug has the right idea - we should store dates in the Gramps XML representation. Nick. |