This is the queue to ping to get new countries listed. These are delayed due to ISO taking some months (or years) to get around to publishing new codes. As of today, there is one country that should get an ISO country code in the near future (maybe two depending on the upcoming referendum outcome in Scotland and the British governments response to this):

Kosovo

This has only been partially recognized by other countries. However, Kosovo has joined the International Monetary Fund and World Bank, which should result in their inclusion in the standard in the near future. The code commonly used is XK.

Note that there is currently no way to update fields when a ISO alpha-2 code changes. See #1439934: Handling ISO alpha-2 code changes

User-assigned code elements

The following alpha-2 codes can be user-assigned: AA, QM to QZ, XA to XZ, and ZZ. These will never have any countries assigned to these.

Examples

XZ
International waters by UN/LOCODE
QO
Outlying Oceania (Antarctica, Bouvet Island, the Cocos (Keeling) Islands, Christmas Island, South Georgia and the South Sandwich Islands, Heard Island and McDonald Islands, the British Indian Ocean Territory, the French Southern Territories, and the United States Minor Outlying Islands) by Unicode Common Locale Data Repository (CLDR)
QU
European Union by CLDR
ZZ
Unknown or Invalid Territory by CLDR

This issue should be kept open to track additions to the countries table in the database.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webflo’s picture

Component: Code » Documentation
Alan D.’s picture

Component: Documentation » Code

We should run proper updates for these whenever possible (this will also flush the safe to safe_value caching issue as a benefit)

Newsletter VI-9 "Name changes for Fiji and Myanmar as well as other minor corrections

2011-06-12

Current record:
"BQ","BES","Bonaire, Saint Eustatius and Saba","Bonaire, Saint Eustatius and Saba","535","NA","1"

Requires changes from "Saint" to "Sint"
Name: Bonaire, Sint Eustatius and Saba
Official: Bonaire, Sint Eustatius and Saba

"FJ","FJI","Fiji","Republic of the Fiji Islands","242","OC","1"
Change official name to just "Republic of Fiji"

Note: ISO 3166 is actually "the Republic of Fiji" but the word "the" has been removed from most official records in the db.

No changes:
"NU","NIU","Niue","Niue","570","OC","1"

This should have been "Republic of Niue", now shortened to just "Niue"

These have been committed (38c41f4). This contains an update script that will flush any stale cache data and direct the users to the import URL for syncing with the countries csv import file.

Alan D.’s picture

ISO 3166 Maintenance Agency has officially assigned the country codes for South Sudan as follows:

ISO 3166-1 alpha-2 code: SS
ISO 3166-1 alpha-3 code: SSD

Ref: http://www.iso.org/iso/country_codes/updates_on_iso_3166.htm

Added to 7.x-2.x: ffb0163 but not update script.

Alan D.’s picture

Libya is now just Libya. Change required is to reduce the official name to just Libya.

Side note, there is no actual official English long name in the newsletter, but the french names are both just Libye now.

See http://www.iso.org/iso/nl_vi-11_name_change_for_libya.pdf

Alan D.’s picture

Issue summary: View changes

Removed SS from issue summary, added short list of common user defined codes.

Alan D.’s picture

Update 14 Feb 2012 - Country list and short names (name field) is 100% in sync with the ISO-3166-1 standard.

Alan D.’s picture

ISO 3166-1 NEWSLETTER VI-12 (http://www.iso.org/iso/iso_3166-1_nl_vi-12_name_change_for_hungary.pdf)
Date: 2012-02-15

-"HU","HUN","Hungary","Republic of Hungary","348","EU","1"
+"HU","HUN","Hungary","Hungary","348","EU","1"
Alan D.’s picture

ISO 3166-1 NEWSLETTER VI-13 (http://www.iso.org/iso/nl_vi-13_name_change_for_eritrea.pdf)
Date of change: 2012-08-02

Nothing of interest: "State of Eritrea" > "the State of Eritrea".

The module excludes "the" in this context, i.e. "Federal Republic of Germany" is used instead of "the Federal Republic of Germany"

Alan D.’s picture

ISO 3166-1 NEWSLETTER VI-14 (http://www.iso.org/iso/iso_3166-1_newsletter_vi-14_name_change_state_of_...)
Date of change: 2013‑02‑06

Alan D.’s picture

ISO 3166-1 NEWSLETTER VI-15 ( http://www.iso.org/iso/iso_3166-1_newsletter__vi-15_name_change_for_papu...). The official name was defined as per our current import file so no changes required.

Alan D.’s picture

Name change for Somalia
ISO 3166-1 NEWSLETTER VI-16 (http://www.iso.org/iso/iso_3166-1_newsletter__vi-16_name_change_for_soma...)

The official name was defined as per our current import file so no changes required.

kenorb’s picture

Status: Active » Needs review
FileSize
606 bytes

Attached patch for Kosovo.

Status: Needs review » Needs work

The last submitted patch, countries.csv-Kosovo.patch, failed testing.

kenorb’s picture

Status: Needs work » Needs review
FileSize
606 bytes

To import new country, go to: /admin/config/regional/countries/import

kenorb’s picture

Issue summary: View changes

Fix formatting issue in dl.

Alan D.’s picture

CV => Cape Verde Cabo Verde

Change: 2013-11-26
Ref: https://www.iso.org/obp/ui/#iso:code:3166:CV

@kenorb
The module tries to stay 100% in sync with the ISO, with configurable overrides to let users manually add additional countries. However a section in the readme could be a valid option with a list of disputed countries and suggested user defined codes.

Also, just wondering on your chosen ISO3, as it is actually defined as:

UNK identifies Kosovo residents to whom travel documents were issued by the United Nations Interim Administration in Kosovo (UNMIK) as defined in the ISO/IEC 7501-1

Not that I could find anything better :/

bendygirl’s picture

Status: Needs review » Needs work

@kenorb and Alan D, looks like the patch isn't working since Cabo Verde is still reverting to Cape Verde.

Additionally, the Czech Republic has also changed their name. https://www.cia.gov/library/publications/the-world-factbook/geos/ez.html http://www.bbc.com/news/world-europe-36048186

kenorb’s picture

Assigned: Alan D. » Unassigned
Alan D.’s picture

https://www.iso.org/obp/ui/#iso:code:3166:GY
2018-11-06 Change of the full name

I think this was just appending the "the" to the long form, which is excluded by default on all countries long forms