Sure, create a settings_local.py file with the following content:

LANGUAGE_CODE = 'es'

MIDDLEWARE_CLASSES = (
    'common.middleware.strip_spaces_widdleware.SpacelessMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'common.middleware.login_required_middleware.LoginRequiredMiddleware',
    
'permissions.middleware.permission_denied_middleware.PermissionDeniedMiddleware',
    'pagination.middleware.PaginationMiddleware',
)

The MIDDLEWARE_CLASSES is the same as in the default settings.py file but 
without the 'django.middleware.locale.LocaleMiddleware' to keep the 
language on the one set by the LANGUAGE_CODE setting.

change the 'es' in LANGUAGE_CODE setting to any of the supported language 
codes:

'es' - 'Spanish'
'pt' - 'Portuguese'
'ru'- 'Russian'
'it' - 'Italian'
'pl' - Polish

Thanks for supporting my work :)

On Monday, March 5, 2012 12:09:18 PM UTC-4, orsomannaro wrote:
>
> I'm trying Mayan but I'm new in Python/Django: is it possibile to set a 
> default language different from English?
>
>
> Thank you so much for sharing your work!
>

Reply via email to