Re: django i18n for google

2008-12-28 Thread James Bennett

On Sun, Dec 28, 2008 at 7:19 PM, Alessandro Ronchi
 wrote:
> Django itselfs permits selecting the i18n language via POST. I think
> it should be useful to add also a GET var to set the language, and a
> localization middleware catches it.

This has been debated to death, and the conclusion is that Django's
own i18n system will only support changing language via HTTP POST.
Please consult the list archives for details.


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django i18n for google

2008-12-28 Thread Alessandro Ronchi
2008/12/27 Antoni Aloy :

> You could create a url that links to your localized site so Google
> would be able to crawl it, but I suppose that your site depens on
> changing the language via POST, isn't it?
>
> I that case, you could write yourselve the code and allow changing the
> code using GET.

Django itselfs permits selecting the i18n language via POST. I think
it should be useful to add also a GET var to set the language, and a
localization middleware catches it.
Django gets user language from the browser accept-language or user
browser cookie, but it should be useful to force it with a
&language=en

This little mod could improve google crawling, because one can only
make sitemaps with urls and that get value added to  default urls for
every translations (and it should be easy to add a shortcut to add
urls in different language translations in sitemap views).



-- 
Alessandro Ronchi
Skype: aronchi
http://www.alessandroronchi.net

SOASI Soc.Coop. - www.soasi.com
Sviluppo Software e Sistemi Open Source
Sede: Via Poggiali 2/bis, 47100 Forlì (FC)
Tel.: +39 0543 798985 - Fax: +39 0543 579928

Rispetta l'ambiente: se non ti è necessario, non stampare questa mail

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django i18n for google

2008-12-27 Thread Antoni Aloy

2008/12/27 Alessandro Ronchi :
> Il 16 dicembre 2008 19.20, Alessandro Ronchi
>  ha scritto:
>> When google spiders our i18n translated django websites, does it try
>> and indicize all languages? is it possible to force the language by a
>> GET var (for example &language_code=en) ?
>
> I think it's a critical problem.
>
> We spend time to make our i18n websites but google bot don't see other
> languages except default.  Is there a way to select language with a
> get url? Any other solution?

You could create a url that links to your localized site so Google
would be able to crawl it, but I suppose that your site depens on
changing the language via POST, isn't it?

I that case, you could write yourselve the code and allow changing the
code using GET.

-- 
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django i18n for google

2008-12-27 Thread Alessandro Ronchi
Il 16 dicembre 2008 19.20, Alessandro Ronchi
 ha scritto:
> When google spiders our i18n translated django websites, does it try
> and indicize all languages? is it possible to force the language by a
> GET var (for example &language_code=en) ?

I think it's a critical problem.

We spend time to make our i18n websites but google bot don't see other
languages except default.  Is there a way to select language with a
get url? Any other solution?


-- 
Alessandro Ronchi
Skype: aronchi
http://www.alessandroronchi.net

SOASI Soc.Coop. - www.soasi.com
Sviluppo Software e Sistemi Open Source
Sede: Via Poggiali 2/bis, 47100 Forlì (FC)
Tel.: +39 0543 798985 - Fax: +39 0543 579928

Rispetta l'ambiente: se non ti è necessario, non stampare questa mail

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



django i18n for google

2008-12-16 Thread Alessandro Ronchi
When google spiders our i18n translated django websites, does it try
and indicize all languages? is it possible to force the language by a
GET var (for example &language_code=en) ?


-- 
Alessandro Ronchi
Skype: aronchi
http://www.alessandroronchi.net

SOASI Soc.Coop. - www.soasi.com
Sviluppo Software e Sistemi Open Source
Sede: Via Poggiali 2/bis, 47100 Forlì (FC)
Tel.: +39 0543 798985 - Fax: +39 0543 579928

Rispetta l'ambiente: se non ti è necessario, non stampare questa mail

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---