Hi,
I'm using DateTime to generate calendars on my web page (e.g.
http://www.mangrove.cz/calendar/vb ), which is localized to Czech and English
(change your browser preferences if you want to see the two languages). The
heading of the calendar is currently taken from DateTime::month_name, but is
wrong in Czech, where nouns are inflected and the month name must be in the
nominative case when used by itself, while what DateTime::month_name returns
is the case used when month name goes after day number (don't know its latin
name, sorry :-) ). In other words, the example in the synopsis of
DateTime::Locale works in French (and English) but not in Czech (and probably
other languages).
I've looked at CLDR, and it seems it actually facilitates this distinction
between "stand-alone" and "format" contexts (and the data is there in cs_CZ),
but the DateTime interface AFAIK doesn't. As a workaround, I suppose I can
define my own month names, but I think DateTime should be extended - perhaps
a parameter to month_name and day_name?
Bye
Vasek
--
http://www.mangrove.cz/
Open Source integration