[Ml-yokadi] t_set_due lundi

Sébastien Renard Sebastien.Renard
Dim 15 Fév 14:35:30 CET 2009


Le mercredi 11 février 2009, Aurélien Gâteau a écrit :
> Jérôme Santini wrote:
> > Hello
> >
> > [is english mandatory for this mailling list ?]
>
> [yes, please]

We're all french, but that's for posterity ;-)

> > I was wondering if you would consider to extend syntax to t_set_due so
> > it's possible to use something like "t_set_due 16 lundi" (or t_set_due 16
> > monday, if you won't add localisation short term) ? It would make date
> > selection for near futur easier.
>
> That would be a good idea. About localization: while I do not think we
> should translate everything (for example, we should not IMO translate
> commands), support for localized day names could easily be implemented.
> Of course we should always support english day names.

The first localization goals would be:
- online help
- online error/warning message
- documentation (and web site)
- local date handling (day name and parsing order).

For now, the Yokadi dateutils.ParseHumanDateTime is quite simple but yet 
powerfull. I don't think that we should make it too complex. If we want 
advanced date parsing facilities we can have a look at the excellent work of 
Gustavo Niemeyer here :
http://labix.org/python-dateutil#head-a23e8ae0a661d77b89dfb3476f85b26f0b30349c

It would add another dependancies to Yokadi. This one is quite common and 
already packages in numerous distributions.

BTW, it provides the excellent, again, rrule class that can handle date 
recurence quite well (I've use it in my "Chronix" scheduler project (see my 
github accound). That was a user whish in a linuxfr.org comment : 
http://www.linuxfr.org/comments/1005877.html#1005877


-- 
Sébastien


Plus d'informations sur la liste de diffusion Ml-yokadi