A bunch of the locales (e.g. ar_SY) have no date formats, but have
other stuff defined so they pass the has_data() check.

In this case I think they should inherit from their parent (ar).

However, there are some base languages (e.g. az) which have no date
format information defined but their sole child (e.g. az_AZ) has them.
The problem in this case is that the dates defined by az_AZ are of the
form dd.MM.yyyy, but root is M/d/yy so simply inheriting the root one
is probably incorrect.

So I propose the following:
 A) If a locale (specified by language and territory) has no date
    format then it should inherit that of the language
 B) If a language has no date format then no date format can be
    determined.  For the DT::F::Simple stuff that will mean that there
    is no default month and day ordering, so it will throw an error
    unless one is provided separately.

Does this make sense?

I think A can be implemented by simply changing the subclass not to
generate a date_formats sub since it ISA the parent class.

I have not looked to see if there is a similar issue with month and
day names not being defined, but I assume that there is.  I assume
that a similar fix will be sufficient if there is a problem.

Thoughts?

                -ben

Reply via email to