The profile page has a country select box that does not include the country 'Curaçao'
This formerly was part of the Netherlands Antilles, which ceased to exist in 2010 when Curaçao and some other islands of the Dutch Caribbean, became independent.

So: Remove "Netherlands Antilles" from the countries list.
and add "Curaçao" to the countries list.

Thank you.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Yuri created an issue. See original summary.

Yuri’s picture

TR’s picture

Title: Remove "Netherlands Antilles" and add "Curaçao" » Country selection on User profile page doesn't show many countries

Yes, this is definitely a bug, but I don't know where this is happening.

The Drupal Core list of countries DOES contain Curaçao (It also contains "Netherlands Antilles" for backwards compatibility - you don't want to remove that because it would corrupt any database row that referred to that country. User profiles for one, who knows what else).

Drupal Core added Curaçao to the country list on 19 Nov 2011 in issue #1313342: Curacao should appear in standard_country_list(). And it's in both Drupal 7 and Drupal 8. I don't know why drupal.org isn't using that information.

So this issue is definitely in the right place in the Webmaster's issue queue - it's just the drupal.org website that's wrong, not Drupal itself.

A brief look at the country choices in my profile show a number of other missing countries. The website lists only 229 countries, while Drupal 7 includes/iso.inc lists 250 countries and Drupal 8 core/lib/Drupal/Core/Locale/CountryManager.php lists 258 countries.

Missing from the website (this is not a complete list):

  • Aland Islands
  • Curaçao
  • Saint Barthélemy
  • Sint Maarten

Some are also named strangely. For example, drupal.org says "Cote D Ivoire" whereas Drupal Core 7 uses "Ivory Coast" and Drupal 8 core uses the correct "Côte d’Ivoire"

Also, the countries are sorted strangely. They're not sorted alphabetically on drupal.org, but they're not sorted by 2-character country code either.

TR’s picture

Issue summary: View changes
apaderno’s picture

Component: Other » User account
apaderno’s picture

From issues like #129685: Missing country at user creation form and #633586: Iraq not in the list of countries (drop-down, user accounts), I take Drupal.org was once using a profile field. (Otherwise, I would not have been able to add a new country in the list.) Maybe now there is a user entity field for country (which I am not able to edit).

If it's so, the values are contained in a database table. That would explain the difference between what Drupal lists as country, and what can be selected on Drupal.org.

apaderno’s picture

The Country field is imported as feature in drupalorg_user.features.field_base.inc. Editing or adding countries in that field requires to edit a feature.

apaderno’s picture

Project: Drupal.org site moderators » Drupal.org customizations
Version: » 7.x-3.x-dev
Component: User account » User profiles

In which way can we contribute to fix the issue? Is a patch for that file sufficient, or is it required to do something different?

drumm’s picture

Assigned: Unassigned » drumm
Status: Active » Closed (cannot reproduce)

All the examples from #3 have already been fixed as part of #2672184: Store country codes instead of words.