On Sun, 2009-03-22 at 20:01 -0700, Eric wrote:
> Hi, Now , I face a problem about Internationalization, I have used
> django +

Since you've already posted this twice previously, the last time being
only three days ago, what progress have you made in the meantime?

I would expect something like the following to have taken place:

(1) Reread the internationalization documentation a few times, noting
the description of how Django works out the active locale to use.

(2) Put some debugging prints in the appropriate place in the locale
setting code in django/utils/translation/*.py to see which values are
being passed through and which branches in various if-tests are being
taken. In particular, if you're using the locale middleware,
get_language_from_request() is going to be an important place to look.
In particular, working out why the session setting isn't being honoured
there, since it overrides everything else.

(3) Reduce your example to the bare minimum and build things up slowly.
One dropdown in a form, say, used to select the language. Then do
nothing with the form and make sure the locale is changed correctly when
the browser locale is changed. Then add processing the form input and
work on things so that it overrides the browser-submitted locale.

This problem has a solution, for sure. So start from something very
simple and add things to it one step at a time. Don't try to understand
the problem by debugging it as part of your full site: reduce it to a
very simple form containing no other information.

Have you done anything along those lines?

[...]
> There is the source code:

No, that's a very small fraction of the source. Probably not enough for
somebody else to test out the problem (it wasn't enough for me, at
least). You don't mention if those fragments are in the same function or
anything like that. When we asked to see a small example of the
problem, 

I realise you have some kind of possibly tricky problem here, but
posting and reposting and reposting the same question isn't helping
anybody.

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to