I'm not sure if this provides exactly what you need, and I've never tested it with satchmo, but I've been using http://code.google.com/p/django-localeurl/ with success to proved different urls according to the language transparently.
Maybe this helps, Nuno On Wed, Aug 11, 2010 at 3:46 PM, Alessandro Ronchi <alessandro.ron...@soasi.com> wrote: > I have a website that uses a get variable to set the django language. After > that, a user can navigate the site in the choosen language. > Web spiders, instead, reads all the web pages In standard language, because > links doesn't have ?lang=en > So, as a result, all my translated pages aren't on google. > I know I should have different urls, but I cannot in this project because > I'm using satchmo, a django e-commerce system, and I can't edit urls to work > this way. > So I thought I can create a middleware that incercepts all my <a > href="http://mydomain"> urls in templates and adds to href a lang=en, > lang=fr, > if the request.language is respectively en, fr. > So all my links should be ok. > Is it possible? > > -- > Alessandro Ronchi > http://www.soasi.com > > Hobby & Giochi > http://hobbygiochi.com > http://www.facebook.com/hobbygiochi > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@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. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.