I have indeed access to my logs, I'll check that and let you know.
Many thanks Malcolm.

On May 2, 10:32 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Wed, 2007-05-02 at 08:16 +0000, Phil wrote:
> > Guys,
>
> > I use the i18n framework of django to offer my site content in two
> > language: French and English. As the language preference is kept in a
> > cookie, all the URLs of my site are therefore language agnostic. All
> > is working fine.
>
> > But, when the googlebots hits my site, they only hit the French-
> > translated content!
> > I checked the cached version of the site in google and all the pages
> > are in French.
>
> > Has somebody already given some thoughts on this and found a solution,
> > or do I will have to change my URLs as to have to sets, one in English
> > and one in French (http://www.mysite.com/path/to/url/fr/and
> >http://www.mysite.com/path/to/url/en/) or something equivalent ?
>
> Do you have access to your web server's logs? If so, you might want to
> pull out all the Google bot hits and see if there's a pattern in the way
> they are pulling the URLs to see why they might be getting the French
> content.
>
> I don't know for sure what your problem might be, but there is one
> suspect: If Google's crawler is cookie-aware there is one bug in
> Django's i18n stuff that may be hitting you. Unfortunately, the "set
> language" link changes your i18n setting when it is requested via a GET
> request. This is bad: it has side-effects, so only a POST should trigger
> the change. The result of this bug is that anything crawling every link
> in the site will have their language changed just by issuing a GET on
> the "set language" link. In the very near future, I'm going to fix this
> bug -- it's ticket #3651, if you're interested. I'm going to have a "day
> of backwards-incompatible changes" later this week and this will be one
> of them.
>
> 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