Skip Menu |

This queue is for tickets about the Locales CPAN distribution.

Report information
The Basics
Id: 82884
Status: resolved
Priority: 0/
Queue: Locales

People
Owner: Nobody in particular
Requestors: PERLOVER [...] cpan.org
Cc:
AdminCc:

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



Subject: Territory confusion
I don't understand your module I think you mix territories and languages. For example you have the Locales::DB::Territory::cs module. The cs is language code of Czech in territory CZ. The CS territory misses. Other example: Ukraine country. There the uk language code and UA country code. You have the Locales::DB::Territory::uk module but it means as UA territory. I think there is territory codes which match with other language codes. For example i cannot use your module because it incorrect works. Why did you do Locales::DB::Territory:* modules with language codes instead territory codes?
On Tue Jan 22 07:20:22 2013, PERLOVER wrote: Show quoted text
> I don't understand your module > > I think you mix territories and languages.
The territory and language codes comes directly from the CLDR. Show quoted text
> For example you have the Locales::DB::Territory::cs module. The cs is > language code of Czech in territory CZ. The CS territory misses. Other
Correct, in CLDR the language tag 'cs' is 'Czech' and the territory tag 'cs' is 'Serbia and Montenegro'. Show quoted text
> example: Ukraine country. There the uk language code and UA country > code. You have the Locales::DB::Territory::uk module but it means as UA > territory.
Correct, in CLDR the language tag 'uk' is 'Ukrainian' and there is no territory tag 'uk'. Show quoted text
> I think there is territory codes which match with other > language codes.
Sure they can be the same letters but they are two completely different categories and so completely different things. One combines them into a single “locale” tag to get more specific: en (English) en_gb (English in Great Britain) es (Spanish) es_mx (Spanish in Mexico) es_es (Spanish in Spain) - notice that the language and territory parts that make up this locale tag are the same letters as each other Show quoted text
> For example i cannot use your module because it incorrect works.
What are you trying to do? Can you send a short command that demonstrates that along with what it is doing and what you expected it to do? Show quoted text
> Why did you do Locales::DB::Territory:* modules with language codes instead territory codes?
As I outline above the data comes from CLDR and the fact that a territory and a language tag share the same letters is not a problem since they are not the same thing. It sounds like you're trying to create an object from a territory tag instead of a proper locale tag and getting unexpected results since the territory tag is also a (likely unrelated) language tag. But I can help more if you send the example that demonstrates the trouble you're having. thanks!