Hey Ryan,

half an hour ago I implemented a redirect to a link with the language
code based on the session language when no language code is given by
the url. So instead of displaying the view for www.domain.com, I check
in the controller if a language is given by a passed-argument and if
not, I redirect them to www.domain.com/it for the italian version.

But I don't think this can solve the problem. When the Google Bit
cannot start a session there will always be english as the default
language, and so even now he would be redirected to www.domain.com/en
and no other languages will be checked.

Am I missing something here? Does the URL language code (like www.domain.com/it)
ALWAYS have to set the session language to this specific language? Or
is it ok when I tell google to check for www.domain.com/it, which
would set the language to italian, and other links like it/controller/
action/param would not? The Bot maybe only needs a start url which
sets the language, I could even use the action called for this route
to write to the Configure::write('Language.default') and then the Bot
would get the correct locale?

I know this is a bit much but I hope you get a little idea of how my
system works so you can understand what I'm concerned of.

Regards,

DD

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to