Czech Republic is CZ #10

Closed
whiskybar opened this Issue Jan 24, 2013 · 3 comments

Comments

Projects
None yet
2 participants

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 May 23, 2013

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 May 23, 2013

@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!

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.

@whiskybar whiskybar closed this Jun 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment