isoiso-3166

ISO 3166-1 alpha-2 comma separated values


http://www.iso.org/iso/country_names_and_code_elements has "VIRGIN ISLANDS, BRITISH". I would've thought the country is called "British Virgin Islands'. Am I looking at the wrong place for country names? And yes, this is a programming question, I want to use it in Drupal core.

Edit: and no, the question is not just that single country name. Every country name separated by comma seems to be a similar problem. I need an ISO source :/


Solution

  • ISO 3166 has no concept of "common name" for a country. It only carries the following names:

    The short name will be something like:

    Central African Republic (the)
    Virgin Islands, British
    

    The long name will be something like:

    The Republic of Equatorial Guinea
    People's Republic of China
    

    Both the short and long names are somewhat useless in a user interface. That's why the Debian project maintains a 'common name' column in its ISO 3166 database. It fixes some of the blatant issues, but definitely not all of them (especially not the Virgin Islands, British entry).