I'd do the following: - look up standards for language and region selectors (those are probably more en-GB and de-DE and en-US and so on than what IE does, but google should help) - decide what you want to use internally
then - if you want automatic selection - create an appcontroller function that gathers different data and merges it like IT IS YOUR perference - ip, geolocation, user's OS region setting, user's browser language / region setting. You will have to get down and dirty on different informations the browsers supply. Do NOT remove the users CHOICE. Imagen you are a british guy in a german internet cafe with german regional settings. .... oh dear. Then - if you do not want automatic selection I'd do it via subdomains. You could let the user select the language on first load of the page - e.g. when no subdomain language code is specified. Other way would be to store things in a cookie and doing automatic redirects. Given a last.fm user sends you a german page but you prefer english last.fm it would redirect you to the english version of the same page. Instead of a cookie approach you could go via user's settings and sessions. Besides all that - if you want automatic stuff you will have to spoof and I'd do that in the controller. If not I'd just use subdomains and be happy with that. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
