Skip Menu |
 

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

Report information
The Basics
Id: 62418
Status: open
Priority: 0/
Queue: Catalyst-Plugin-I18N

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

Bug Information
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
Download (untitled) / with headers
text/plain 486b
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 is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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