#5446: New model fields for languages and countries at least ------------------------------------------------+--------------------------- Reporter: Raphaƫl Hertzog <[EMAIL PROTECTED]> | Owner: nobody Status: new | Component: Database wrapper Version: SVN | Keywords: Stage: Unreviewed | Has_patch: 0 ------------------------------------------------+--------------------------- I think that many applications have to deal either with language specific content and/or countries. It would be nice if Django provided ready to use fields for languages and countries instead of asking every user to handle the list and its full translation by himself (it could be a contrib package though). IMO this is best done by creating some glue on one of the available open-source reference lists. At Debian, we use a package called iso-codes that is very well-translated and kept up-to-date as it's used by our installer. http://svn.debian.org/wsvn/pkg-isocodes/trunk/iso-codes/?rev=0&sc=0 I can also mention the django-countries project created by Chris Moffitt (who created Satchmo, a Django-powered e-commerce framework). Its extent is somewhat more limited but it's already developed specifically for Django. http://code.google.com/p/django-countries/ And then, of course, there's Babel: http://babel.edgewall.org The idea is to have something like: {{{ country = models.CountryField() language = models.LanguageField() }}} Instead of: {{{ COUNTRIES = ( ('fr', _('France')), ('de', _('Germany')), ... ) country = models.CharField(max_length=10, choices=COUNTRIES) }}} which requires redoing the translation work and which is tedious to manually maintain.
-- Ticket URL: <http://code.djangoproject.com/ticket/5446> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
