Subject: | wrong month name for de_AT |
Hi!
I just discovered that DateTime::Locale::de_AT returns the German value
for January (i.e. "Januar") instead of the Austrian "Jänner". As some
Austrians are rather picky, I'd love to have this fixed...
As far as I found my way round CLDR, the data is correct in there:
http://www.unicode.org/repos/cldr/tags/release-1-7-1-2/common/main/de_AT.xml
(the same is true for 1.7.1, but I could only find a zip-file (core.zip)
that makes linking rather annoying..)
Anyway, I figure there's a problem in the code that transforms the CLDR
into DT:L:foo_BAR, but as I've never looked into the internals of
either, I though maybe somebody with more experience could fix the bug
faster. (If not, I'd appreciate pointers to fix it myself)
I've also attached a test demonstrating the wrong behaviour ("10de_AT.t"
but feel free to rename/move/dump this test to wherever it fits best
into the test suite).
Thanks for DateTime and friends!
Greeting,
Thomas Klausner
Subject: | 10de_AT.t |
use strict;
use warnings;
use Test::More tests => 1;
use utf8;
use DateTime;
my $date = DateTime->new(
year=>2009,
month=>01,
day=>01,
locale=>'de_AT',
);
is($date->month_name,'Jänner','correct austrian month name for jan');