SmileyChris / django-countries

A Django application that provides country choices for use with forms, flag icons static files, and a country field for models.

Home Page:https://pypi.python.org/pypi/django-countries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change the name Turkey to Turkiye

xi42 opened this issue · comments

Turkey changed its name to Turkiye this year. Its name in COUNTRIES should be updated, though probably Turkey should be put into COMMON_NAMES and/or OLD_NAMES.

Source: Wikipedia article "Name of Turkey"

image

At first, I wanted to object because the Wikipedia article is called Turkey. But then I did an additional check and according to the standard ISO-3166 the name was changed.

Since the library follows this standard, the decision to change the name seems logical.
ISO link: https://www.iso.org/obp/ui#iso:code:3166:TR

This is a self-generating script that contains all of the iso3166-1 data.
To regenerate, a CSV file must be created that contains the latest data. Here's
how to do that:
1. Visit https://www.iso.org/obp
2. Click the "Country Codes" radio option and click the search button
3. Change the results per page to 300
4. Copy the html table and paste into Libreoffice Calc / Excel
5. Delete the French short name column
6. Delete the heading row.
7. Save as a CSV file in django_countries/iso3166-1.csv
8. Run this script from the command line