hello,
I have been using this recipe for some times :
http://yml-blog.blogspot.com/search/label/Internationalisation
It seems to exactly answer your requirements.
I hope that helps.
--yml

On May 30, 6:09 pm, Taevin <[EMAIL PROTECTED]> wrote:
> I've been working with translation in Django and it mostly works but
> I'm wondering if there is a 'cleaner' way of doing things.  That is,
> here is what I seem to have to do to get a page translated into the
> correct language:
>
> URLs are of the form $domain/$language_code/$page 
> (e.g.www.example.com/en/index
> orwww.example.com/fr/index).
>
> 1. Look for a language code in the URL.
> 2. Check the user's session for an existing django_language setting.
> 3. Compare the two (and include edge cases for None with either).
> 3.a. If equal, language is the same, just display the page.
> 3.b. If not equal, set the django_language setting to the language
> code from the URL and then redirect the page to the same URL (this is
> the part that I'm wanting to fix).
>
> In other words, is there a way to immediately set the translation
> language for the output without a page refresh?
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to