On Sun, Jan 16, 2011 at 04:23, David Walker <d...@walker.cx> wrote:
> Despite reading round and round in circles in the documentation, I am
> completely baffled about localisation and how it works.  I am not
> trying to do any translation yet, but want to code money and date
> formats right so that I don't have to rewrite things later.
>
> It isn't even clear to me which locale things are being localised to.
> I had presumed that everything would be localised to the browser's
> locale, using the language setting, however it seems to be localised
> to the LANGUAGE_CODE setting from settings.py.  Am I doing something
> wrong?

I have successfully seen changing the language setting in the/a
browser work (in Japanese) when it comes to localisation of a django
based site, with LANGUAGE_CODE set to "en".

You may need to send more information, for eg:

which version of django on what platform (these are less important,
but you never know)

Do you have USE_L10N = True in settings.py?

Do you have 'django.middleware.locale.LocaleMiddleware', in MIDDLEWARE_CLASSES?


cheers
L.

>
> Any help would be gratefully received.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>



-- 
"... imagine a puddle waking up one morning and thinking, 'This is an
interesting world I find myself in - an interesting hole I find myself
in - fits me rather neatly, doesn't it? In fact it fits me
staggeringly well, must have been made to have me in it!' This is such
a powerful idea that as the sun rises in the sky and the air heats up
and as, gradually, the puddle gets smaller and smaller, it's still
frantically hanging on to the notion that everything's going to be
alright, because this world was meant to have him in it, was built to
have him in it; so the moment he disappears catches him rather by
surprise."
Douglas Adams

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to