View Single Post
  #5 (permalink)  
Old 03-28-2007, 09:48 PM
SpotSec's Avatar
SpotSec SpotSec is offline
Senior Member
 
Join Date: Feb 2007
Location: United States
Posts: 121
Default

That is true, but obviously you should think of the user experience first and foremost. Usually I would not suggest one method, but a combination (cookies, http_accept_language, etc..) so that if one fails you still have other ways to language the user wants.

Using cookies and session is not a problem most of the time if it is backed up with other systems in place. The method provided my Hujer is a perfect example as
the /lang/module/controller/action can be implemented with a custom router to detect if there was a lang prefix else display the default language.

With several systems in place the user will enjoy the automatic detect of their own language and you get the benefit of seo as most spiders dont submit their language anyways.

Detection:
  1. GET/POST
  2. Cookie
  3. Session (usually never needed)
  4. HTTP_ACCEPT_LANGUAGE
  5. Default language
__________________
Zym Framework - A Zend Framework extension library w/ demo app

SpotSec Blog:
http://spotsec.com/blog

Last edited by SpotSec : 03-28-2007 at 09:50 PM.
Reply With Quote