Richard Evans' mail about his Locale modules reminden me of something:

I'm thinking of adding a module for Latin, either DT::Language or
DT::Locale (depending on the release date of Rich's modules). And of
course I want the grammar to be correct, so the month_name() method and
the %B strftime specifier should be able to return several forms of the
names: the nominative case (e.g. December) and the genitive (Decembris).
This same problem has been brought up for Greek, and no doubt
there are similar problems in other languages (Russian?).

Would it be possible to add an optional parameter to month_name,
month_abbrev, %B etc.?

    print $dt->month_name( case => 1 ); # 1 for nom., 2 for gen.
    print '%B';     # default (usually the nominative case)
    print '%d %1B';    # 1 = nominative, 2 = genitive

The same thing would also have to be done for the days of the week.

Eugene

Reply via email to