This queue is for tickets about the Catalyst-Plugin-I18N CPAN distribution.

Report information
The Basics
Id:
62418
Status:
open
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
calimail.rt [...] yogamaven.com
Cc:
AdminCc:

BugTracker
Severity:
Wishlist
Broken in:
0.10
Fixed in:
(no value)



Subject: Give a way to return an ISO 639-1 language code instead of i_default
I need to set the locale of a DateTime object: my $dt = new DateTime; $date->set_locale($lang); If $lang was assigned from $c->language, the previous code won't work because DateTime can't deal with the locale 'i_default'. I had to explicitly set $lang to the default lang with: $lang = $c->languages->[0] if $lang eq 'i_default'; This is (slightly) tedious and it would be useful to have a method to get the corresponding ISO 639-1 language code automatically instead of i_default.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.