Django native translation functionality will get the preferred
language from the user's device.
Than it will give the user application (and possibly content) in the
user's language on the same URL.

Is there a middleware that would put the language iso-alpha-2 code in
the URL if that language translation is available and redirected the
user to a language version on that persistent URL?

E.g.: Visiting http://www.mozilla-europe.org will redirect you to
http://www.mozilla-europe.org/en if EN is your default browser
language, but it will send you to http://www.mozilla-europe.org/de if
you have German as your preffered language in your browser.

If you visit any of the following, you 'll stay in that language no
matter what is you browser preference.
http://www.mozilla-europe.org/en
http://www.mozilla-europe.org/pl
http://www.mozilla-europe.org/sk

This makes the translations linkable and gives you the needed search
Google friendliness.

How to do this in Django?
Is there some code available?

Frank Malina
http://vizualbod.com
--~--~---------~--~----~------------~-------~--~----~
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