umpirsky / country-list

:globe_with_meridians: List of all countries with names and ISO 3166-1 codes in all languages and data formats.
MIT License
5.16k stars 1.55k forks source link

Czech Republic is CZ #10

Closed whiskybar closed 11 years ago

whiskybar commented 11 years ago

The locale code is listed as CS but that should be CZ. That changed in 1993 after Czechoslovakia (CS) split to the Czech Republic (CZ) and Slovakia (SK).

Source: http://www.iso.org/iso/home/standards/country_codes/iso-3166-1_decoding_table.htm

patch commented 11 years ago

Although it's true that the ISO 3166-1 alpha-2 country code for the Czech Republic is cz, the ISO 639-1 language code and IETF language tag for the Czech language is cs. I believe that the correct code is being used here because it's referring to the language in the case of cs.

For example, at https://github.com/umpirsky/country-list/tree/master/country/icu, cs is listed along with ja for the Japanese language instead of jp for Japan. Then in https://github.com/umpirsky/country-list/blob/master/country/icu/cs/country.txt where country codes are listed instead of language codes, it properly uses cz and jp.

Since you didn't list a specific instance of cs that is reported to be in error, I can't verify if this is actually a problem or not, but my guess is that this is the common confusion between the different codes used for the Czech language and the Czech Republic, unlike most languages which share a code with their nation of origin.

patch commented 11 years ago

@whiskybar I see that you're from the Czech Republic so I imagine that you're aware of this issue, so please let me know if I'm missing something!

whiskybar commented 11 years ago

You are right! The (Unix) locale is listed as cs_CZ.UTF-8 in which cs is for the language and CZ is for the country.