I have been working in creating tables in format CSV for the globalization (G11n), so that they can be used in any project where it could be necessary or useful.
You can see the tables on: http://satchmo.python-hosting.com/browser/trunk/satchmo/G11n/data/ And here you have the files for add/integrate them to any Django project: http://satchmo.python-hosting.com/file/trunk/satchmo/G11n/ http://satchmo.python-hosting.com/file/trunk/satchmo/load_G11n.py Some cool things that can be done with all those data: * area.csv, phone.csv Now, Django has two field types for USA, USStateField and PhoneNumberField. But we could have validators for phones of each country. And a drop list as USStateField for another countries where it is necessary for the potstal address as Canada, Mexico, Italy, etc. * country-language.csv, timezone.csv Now, there is to edit the 'settings.py' file to choosing both the language code and local time zone for the installation. But the administrator has to go to a web for lookiing those data, and then edit that file. It's clear that it would be more easy and cool if the administrator could to choosing both data from Django admin, with the help of those tables. In addition, we could use timezone.csv to show to the users its local time according to its configuration. In the users registry it must have an option so that the user could choose his/her time zone. With country-language.csv, we also could to know directly the language and country of the user (using the HTTP header). * country.csv, language.csv With those tables we could show to the user a drop list fot that could choosing those data. In addition with country.csv we can show the correct name for each country about the area. The area is the primary subdivision of a country called state in USA, or province in Canada. But the best interesting is that instead of have a drop list with all countries _it's very heavy that a user is looking for a country into a list of 230+ countries_, we could to have a drop list with the geographical region. In the first a drop list with continents (America), then with its subdivisions (Caribbean, Central America, South America, Northern America), and finally the countries of that subdivision. There will be another table about postal codes. And I have compiled all flags images (SVG format) of all countries that are in globalization files. Now I would that Django developers could to integrate these tables with django, because without a doubt it has many advantages to both the administrators and the users. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" 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-developers -~----------~----~----~----~------~----~------~--~---
