Comments (5)
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.
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.
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.
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.
You can maybe use : http://msdn.microsoft.com/en-us/library/cc233982.aspx
from django-countries.
Related Issues (20)
- Change country order based on user language
- Short country names HOT 1
- multiple=True widget + limit HOT 1
- Adding Kosovo HOT 5
- Question about validation and or documentation. HOT 1
- Turkey localization key HOT 4
- Feature Request: Filter for countries by continent HOT 1
- Martinique name in Ukraine (uk) localization.
- Uses Deprecated package since Django 3.0(django.utils.six) HOT 1
- DeprecationWarning: pkg_resources is deprecated as an API HOT 1
- Show all flag_css in single html page
- Wrong openapi spec when using country_dict=True
- Support for Python version 3.12 on PyPI HOT 6
- Consider moving to jazzband HOT 3
- Django 5.0 breakage HOT 13
- Ülke adlarını iki dilde görmek / Seeing country names in two languages HOT 2
- When setting `COUNTRIES_OVERRIDE`, allow custom flag_url HOT 1
- multiple = True does not work on serializer_fields.CountryField
- Allow null=True on a models.CountryField with multiple=True
- Countries.__iter__ very slow in Django admin HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-countries.