Skip Menu |

This queue is for tickets about the Locale-Codes CPAN distribution.

Report information
The Basics
Id: 84589
Status: resolved
Priority: 0/
Queue: Locale-Codes

People
Owner: Nobody in particular
Requestors: david.bourget [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: alpha-3 language codes not working in Locale::Language
Date: Fri, 12 Apr 2013 02:45:28 -0400
To: bug-Locale-Codes [...] rt.cpan.org
From: David Bourget <david.bourget [...] gmail.com>
Version: 3.18 reproduce: use Locale::Language; warn all_language_codes('alpha-3'); warn code2language('eng',LOCALE_CODE_ALPHA_3); # output: Warning: something's wrong at ... Warning: something's wrong at ...
The correct constant to use is: LOCALE_LANG_ALPHA_3 If you do that, things work fine.
Subject: Re: [rt.cpan.org #84589] alpha-3 language codes not working in Locale::Language
Date: Fri, 12 Apr 2013 12:20:26 -0400
To: bug-locale-codes <bug-Locale-Codes [...] rt.cpan.org>
From: David Bourget <david.bourget [...] gmail.com>
Great. The documentation of Locale::Language says otherwise, so perhaps it should be fixed. On Fri, Apr 12, 2013 at 7:42 AM, Sullivan Beck via RT <bug-Locale-Codes@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=84589 > > > The correct constant to use is: > > LOCALE_LANG_ALPHA_3 > > If you do that, things work fine. >
Subject: Re: [rt.cpan.org #84589] alpha-3 language codes not working in Locale::Language
Date: Fri, 12 Apr 2013 12:21:20 -0400
To: bug-locale-codes <bug-Locale-Codes [...] rt.cpan.org>
From: David Bourget <david.bourget [...] gmail.com>
The error is in the example. On Fri, Apr 12, 2013 at 12:20 PM, David Bourget <david.bourget@gmail.com> wrote: Show quoted text
> Great. The documentation of Locale::Language says otherwise, so > perhaps it should be fixed. > > On Fri, Apr 12, 2013 at 7:42 AM, Sullivan Beck via RT > <bug-Locale-Codes@rt.cpan.org> wrote:
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=84589 > >> >> The correct constant to use is: >> >> LOCALE_LANG_ALPHA_3 >> >> If you do that, things work fine. >>
You are correct. I didn't notice the documentation problem. I'll correct that for the next release.
Subject: Re: [rt.cpan.org #84589] alpha-3 language codes not working in Locale::Language
Date: Fri, 12 Apr 2013 12:25:12 -0400
To: bug-locale-codes <bug-Locale-Codes [...] rt.cpan.org>
From: David Bourget <david.bourget [...] gmail.com>
Note that using 'alpha-3' instead of LOCALE_LANG_ALPHA_3 also didn't work. Thanks for the quick response to this report, that's much appreciated. On Fri, Apr 12, 2013 at 12:23 PM, Sullivan Beck via RT <bug-Locale-Codes@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=84589 > > > You are correct. I didn't notice the documentation problem. > > I'll correct that for the next release. >
Could you double-check that? For me, 'alpha-3' works fine. code2language('eng','alpha-3') => 'English'