stefangabos / world_countries

Constantly updated lists of world countries and their associated alpha-2, alpha-3 and numeric country codes as defined by the ISO 3166 standard, available in CSV, JSON , PHP, SQL and XML formats, in multiple languages and with national flags included; also available are the ISO 3166-2 codes of provinces/ states associated with the countries
http://stefangabos.github.io/world_countries/
Other
1.34k stars 374 forks source link

Portuguese: Portugal and Brazil #78

Open horus68 opened 1 year ago

horus68 commented 1 year ago

Portugal and Brazil are different countries with a common language that do have differences being the portuguese from Portugal the reference for the language in other countries.

When naming countries there are some diferences but you only have a "pt" folder. Some of the names used there are not ok for Portugal. Example you have "Irã" (ok for Brazil) but in Portugal it needs to be "Irão". So, I request to duplicate the folder "pt" (Portuguese) to get a pt-PT and pt-BR versions [world_countries](https://github.com/stefangabos/world_countries/tree/master)/[data](https://github.com/stefangabos/world_countries/tree/master/data) /countries/

I can edit the pt-PT version of the files to fix the issues

stefangabos commented 1 year ago

Thanks for bringing this to my attention!

All the names are taken automatically from Wikipedia. In this case, these are taken from here (click on the Códigos ISO 3166-1 por nome de país).

I will gladly create the pt-PT and pt-BR versions but I don't want these to be kept up to date manually. I run a script every now and then that brings everything up to date so, if you could give me a reliable source for country names used in Portugal I could automatically use it to keep everything updated.

Thanks!

horus68 commented 1 year ago

Wikipedia do not have pt-PT and pt-BR versions so its first to edit (or last to change) wins! I posted a question there but I don't hope it gets any attention.

The ISO 3166 official translated file is a closed edition!

stefangabos commented 1 year ago

actually, asking questions on wikipedia worked for me very well in the past - everywhere I did so, I got quick answers. as an alternative solution, I do have some hard-coded values that were provided by people over time, like your case with "Irão". if that is the only issue, i can hard-code that value and it will never change if updated

horus68 commented 1 year ago

Ok, will wait for discussion on Wikipedia. In a week I will get back to this!

stefangabos commented 6 months ago

any updates on this?