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...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@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
I am not sur e- you seem to have done the work and I trust you did it
correctly :)
> Where do I/we go from here?
I guess we need to bring it up with the developers - ie, should this
be listed as a bug, and if so is it a documentation bug/clarification
that's needed, or does something need to happen at a deeper level.
Plus, there seem to be a multitude of issues (precedence of SHORT_DATE
settings, en_GB short date format...) - which also complicates things.
> Is there a better forum for this?
Yes, I would say that the dev list is the place to go -
django-d...@googlegroups.com I might send through a link to this
discussion to that list now
> Can I help improve things by writing bug reports? enhancements
> requests? patches? documentation? or taking part in discussions?
Yes. How to do it is the hard part. I would frame it as a question,
with clearly demarked issues.
re precedence: expected behavior vs explained behaviour vs witnessed
behaviour (remember to include OS, python version, django version,
documentation version)
re en_GB problems, raise it separately/secondarily and with links that
support your argument.
cheers
L.
--
"There are all kinds of pedants around with more time to read and
imitate Lynne Truss and John Humphrys than to write poems,
love-letters, novels and stories it seems. They whip out their
Sharpies and take away and add apostrophes from public signs, shake
their heads at prepositions which end sentences and mutter at split
infinitives and misspellings, but do they bubble and froth and slobber
and cream with joy at language? Do they ever let the tripping of the
tips of their tongues against the tops of their teeth transport them
to giddy euphoric bliss? Do they ever yoke impossible words together
for the sound-sex of it? Do they use language to seduce, charm,
excite, please, affirm and tickle those they talk to? Do they? I doubt
it. They’re too farting busy sneering at a greengrocer’s less than
perfect use of the apostrophe. Well sod them to Hades. They think
they’re guardians of language. They’re no more guardians of language
than the Kennel Club is the guardian of dogkind."
Stephen Fry
There is a "How Django discovers language preference" section in the
translation deplomyment document
http://docs.djangoproject.com/en/1.2/topics/i18n/deployment/
that describes the workflow followed to discover per user preferences.
That document is linked from the main internationalization page with
the following paragraph:
"For system administrators/final users setting up internationalized apps
or developers integrating third party apps: Deployment of translations."
If you think there is a better place for this part of the docs
please feel free to suggest it. I'm interested in cases as yours (you started
this thread with "despite reading round and round in circles in the
documentation, I am completely baffled about localisation and how it
works") so we can improve the organization of the i18n docs.
> The middleware allows the pages to be localised to the browser's
> locale, although there are still a number of strange behaviours
>
> [...]
>
> Have I got this right?
> Where do I/we go from here?
> Is there a better forum for this?
> Can I help improve things by writing bug reports? enhancements
> requests? patches? documentation? or taking part in discussions?
>
Sorry for the late reply, I've had this message in draft for almost a week.
I will try to answer to the rest of your concerns after I digest and research
them in the following days.
Thanks for taking the time to describe and yes please if you can
open tickets for the issues you identified. although some of them might
have been already reported, you can search them in our Trac installation
filtering by Component = Internationalization.
Regards,
--
Ramiro Morales