Giter VIP home page Giter VIP logo

Comments (5)

SmileyChris avatar SmileyChris commented on May 22, 2024

I'm not against this, but I'm not completely convinced either.

Using an ISO approved list of languages would be an acceptable addition, I guess. It isn't something I'm particularly interested in adding but if someone wants to champion it then be my guest.

from django-countries.

fenuks avatar fenuks commented on May 22, 2024

I wrote a script to generate list of languages from site mentioned above. By default is only fetches languages with two characters long codes, since longer are redundant. You can run it as normal script, ./generate_langs.py and it will save ready-to-use file langs.py in parent directory. I didn't write LangField, but it will be pretty much the same as CountryField.

BTW, is the country list generated or manually created? It would be quite nice to have an alternative countries list with continents and maybe languages assigned to each country.

from django-countries.

SmileyChris avatar SmileyChris commented on May 22, 2024

I'd be more keen to see this generated from an official ISO 639-2 list. Otherwise you start opening a can of worms as to what should be in the list and what shouldn't.

The country list is generated from a CSV of the official ISO 3166-1 list: data.py file is executed which self-generates (see https://github.com/SmileyChris/django-countries/blob/master/django_countries/data.py).

Stepping back, I'm wondering what the real benefit is of having a large list of languages if they can't be tied to a country. So for now, I'm going to say the only way this will get added is if there can be a relationship between countries and languages -- otherwise it could be a totally standalone app.

from django-countries.

SmileyChris avatar SmileyChris commented on May 22, 2024

If a more concrete proposal comes in, the issue can be addressed again. Since this one is quite abstract I'm going to close it for now.

from django-countries.

Oyabi avatar Oyabi commented on May 22, 2024

You can maybe use : http://msdn.microsoft.com/en-us/library/cc233982.aspx

from django-countries.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.