On 24 Jul 2006, at 14:44, GinTon wrote:

If you have the countries in a data base is possible show to the user a
drop list for that he chooses its country. In addition is possible
filter those data by geographical region or inclusive by languages when
I have finished those table. You can not make this using files.
So an administrator could show in its Django project only the countries related to North America or countries with germany language only. There
is a field called 'display' for this proposal.

Also is possible show to the user in the first the geographical regions and then he choose its country form that region. It's very heavy choose
your country from a log list (250 countries more or less)

And as the main table goes in the data base, the rest of data also
because are data related to that table. In addition there are some data
that could need a Many-to-many relationship as languages and countries
and this is easy with the data base.


Well, we are mixing scopes here. L10N is primary based on *locale* settings which don't have to be related to the country. If user is already selected language why don't we use that and present all the relevant data (dates, numbers, ...) in the *locale* format. I deliberately left out currency, tracking and updating exchange rates will be overkill for most of the django sites.

This proposal is for *core* L10N functionality (just like I18N) - so let's add number and date/time formatting for start (any other ideas?) and build other I18N and L10N functionality on top of that.

Also, for date/time django already does a great job. I only wish to move DATE_FORMAT and similar from django.po into LC_* files.

I will soon start to work on something like I described for my current project (and yes, I will also need the currency support). I don't want to patch django core if I don't have to so I'll try to make this a nice reusable application if it's possible.

--
Nebojša Đorđević - nesh
Studio Quattro - Niš - Serbia
http://studioquattro.biz/
http://djnesh.blogspot.com/ | http://djnesh-django.blogspot.com/ | http://trac.studioquattro.biz/djangoutils/
Registered Linux User 282159 [http://counter.li.org]


Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to