7

I know that there are lists of country names in various languages available separately, but I would like to have a list of countries where each country is named how the inhabitants of the country call it. I mean the list like:

United States of America
Россия
Deutschland

I think it would be convenient for website visitors to choose the country name which they know well and also I won't have to store a separate country list for each language on the server - I can always display just this common list.

Is there such a list available on the Internet? Or maybe I can get it out of PHP somehow?

Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
JustAMartin
  • 13,165
  • 18
  • 99
  • 183
  • If you specify the programming language, framework there is a chance that something like this is already built-in. – Uwe Keim Oct 22 '11 at 20:08
  • Just added to the post, it's PHP. – JustAMartin Oct 22 '11 at 20:25
  • 1
    The best one I found is here: [http://www.geonames.de/](http://www.geonames.de/), check the source code for that `html select` in the middle of the page. It contains 2 characters country code plus names in native languages with correct diacritic! – icl7126 Jan 10 '16 at 23:31
  • There's an unsorted array with two letter ISO codes in here: https://github.com/nu7hatch/awesome_country_select/blob/master/lib/awesome_country_select.rb ... should be simple enough to convert into however it is needed. – Mantriur Mar 24 '16 at 17:32

1 Answers1

3

Take a look at the wikipedia article

list of countries and capitals in native languages.

also

list of country names in various languages.

http://www.omniglot.com/countries/

bilash.saha
  • 7,226
  • 2
  • 35
  • 40
  • Thanks, endonym column is what I need, but still maybe there is a simple list available? Wikipedia gives too many alternative names for the same country, I have no idea which of them is most commonly used. But I guess, maybe I'll hav to compose the full list myself... – JustAMartin Oct 22 '11 at 20:24
  • 1
    The fourth link i have just added.Check it. – bilash.saha Oct 22 '11 at 20:35
  • Great, your last two links are the best. – JustAMartin Oct 23 '11 at 10:21