* Daniel McBrearty <[EMAIL PROTECTED]> [2006-08-25 12:10]:
> in fact there are a number of ways the language can be
> detected. For me, these are (highest priority first) ... :
> 
> 1. the uri
> 2. the session (maybe, i'm thinking about this ... the argument
> is that the user shouldn't have to manually set the language
> twice while a cookie persists).
> 3. the browser settings.

Using the session and browser settings are fine; but best is if
you implement them using redirection.

Ie. when someone visits the site, and their session says they
want French, you redirect them to `/fr/$whatever`.

Ideally, only the front page of the site has a language-less URI,
and only there do you redirect. Then whatever other URI they
might bookmark will always have a language code, so on subsequent
pages the problem doesn’t come up at all.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to