Missing countries in _country_get_predefined_list

Created on 10 February 2016, over 8 years ago
Updated 29 January 2023, over 1 year ago

While working on a site i noticed the country Kosovo was missing in Drupal 7 in the _country_get_predefined_list() function. Upon research i noticed CountryManager in Drupal 8 has Kosovo in it's list, while i only need Kosovo myself i conducted a small research to see what else is missing.

Research

I started comparing the lists between 7 & 8 and came with the following result:

  • Drupal 7 contains 250 countries.
  • Drupal 8 contains 258 countries.
  • All the countries in Drupal 7, are included in Drupal 8.
  • There are 7 countries missing in drupal 7, which are included in Drupal 8.

The 7 countries missing in Drupal 7 are:

Proposal

My proposal is to add these to the _country_get_predefined_list() function, so drupal 7 is up-to-date with these countries. I included a patch file with the countries added.

🐛 Bug report
Status

Needs review

Version

7.0 ⚰️

Component
Language system 

Last updated about 23 hours ago

  • Maintained by
  • 🇩🇪Germany @sun
Created by

🇳🇱Netherlands DwaigonDW

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024