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.
Comment | File | Size | Author |
---|---|---|---|
#13 | countries.csv-Kosovo.patch | 606 bytes | kenorb |
#11 | countries.csv-Kosovo.patch | 606 bytes | kenorb |
Comments
Comment #1
webflo CreditAttribution: webflo commentedComment #2
Alan D. CreditAttribution: Alan D. commentedWe 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.
Comment #3
Alan D. CreditAttribution: Alan D. commentedISO 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.
Comment #4
Alan D. CreditAttribution: Alan D. commentedLibya 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
Comment #4.0
Alan D. CreditAttribution: Alan D. commentedRemoved SS from issue summary, added short list of common user defined codes.
Comment #5
Alan D. CreditAttribution: Alan D. commentedUpdate 14 Feb 2012 - Country list and short names (name field) is 100% in sync with the ISO-3166-1 standard.
Comment #6
Alan D. CreditAttribution: Alan D. commentedISO 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
Comment #7
Alan D. CreditAttribution: Alan D. commentedISO 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"
Comment #8
Alan D. CreditAttribution: Alan D. commentedISO 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
Comment #9
Alan D. CreditAttribution: Alan D. commentedISO 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.
Comment #10
Alan D. CreditAttribution: Alan D. commentedName 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.
Comment #11
kenorb CreditAttribution: kenorb commentedAttached patch for Kosovo.
Comment #13
kenorb CreditAttribution: kenorb commentedTo import new country, go to: /admin/config/regional/countries/import
Comment #13.0
kenorb CreditAttribution: kenorb commentedFix formatting issue in dl.
Comment #14
Alan D. CreditAttribution: Alan D. commentedCV =>
Cape VerdeCabo VerdeChange: 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 :/
Comment #15
bendygirl CreditAttribution: bendygirl commented@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
Comment #16
kenorb CreditAttribution: kenorb commentedComment #17
Alan D. CreditAttribution: Alan D. commentedhttps://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