Neboja Ðordevic wrote:
> On 29 Jul 2006, at 13:07, GinTon wrote:
>
> > But I have a dude. If an administrator install all locales in the
> > system, then does each Django project can use directly those locales?
>
> I'm been thinking along this line:
>
> First search for l10n files inside current django i18n path
> (see http://www.djangoproject.com/documentation/i18n/#using-
> translations-in-your-own-projects)
>
> If all this fails try to use system locale path (i.e. /usr/share/
> locale) -> no windows support - is there any way to get locale data
> from windows?
>
Since that almost Django projects will be hosted in Unix servers and
that the administrator should install all locales in order to
facilitate the full location to all the projects, we could to check at
install or run Django that the system has all locales installed, and
indicating it in the Django config file:
IF System == Unix:
check_all_locales
If has_all_locales:
write_config_file
So when Django has to use a locale, it knows in the first where search
it
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django I18N" 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-I18N
-~----------~----~----~----~------~----~------~--~---