0

Is there a comprehensive list of all or most used (e.g. on the websites in www) culture codes regarding to RFC4646 that is already written in a machine readable format (better: JSON)?

Example:

{ codes: [
  { code: 'en-US', name: 'English - United States'},
  { code: 'en-CA', name: 'English - Canada'},
  { code: 'de-DE', name: 'German - Germany'},
  ...
]}

I want to know if there is a preferred list of country codes usually used in e.g. GUIs to select localization of the data represented. I have to give the user of my client the possibility to choose a country code that suits best for its needs. I will use the list for form values of an OpenSource client for accessing WPS (Web Processing Service) servers. WPS uses the selected language for localization of its output data. Since WPS is generic as well as the client, there is no context information that allows me to choose a language for the user: The user alone must finally choose a language.

Community
  • 1
  • 1
Sebastian Barth
  • 4,079
  • 7
  • 40
  • 59
  • 2
    Surely the contents will depend upon your eventual usage of the data? – BenM Sep 26 '14 at 13:44
  • Exactly, what do you need to use these codes for? – Cerbrus Sep 26 '14 at 13:45
  • "best practise" for what? Surely you can simply put all codes in a JSON list, but what do you want to do with them? – Bergi Sep 26 '14 at 13:46
  • @TedBarth: We don't understand what you are asking for. Do you want us to compile a list of the most commonly used culture codes or what? – Bergi Sep 26 '14 at 13:48
  • I want to know if there is a preferred list of country codes commonly used in e.g. GUIs to select localization of the data represented. I have to give the user of my client the possibility to choose a country code that suits best for its needs. – Sebastian Barth Sep 26 '14 at 13:57
  • "Preferred" by whom? Surely the list of countries depends on the business needs of your client. – deceze Sep 26 '14 at 14:05
  • That's the problem: It's not defined. WPS and the client could be used everywhere for everything. The WPS server is unknown and the client is generic. I could give the user a free textfield to enter a code but a list of all codes (with the most used at top) or a small subset for beginners would be better. WPS is a www protocol and so a the ordering could be depended on country codes mostly used on webpages. – Sebastian Barth Sep 26 '14 at 14:10
  • That's not really a question we can answer here. Maybe http://opendata.stackexchange.com is apropos. – deceze Sep 26 '14 at 14:13

1 Answers1

2

http://msdn.microsoft.com/en-us/library/ms533052%28v=vs.85%29.aspx

you could parse the first and third column

AdrianLoer
  • 624
  • 3
  • 11