[Catalyst] Multilanguage application
A. Pagaltzis
pagaltzis at gmx.de
Fri Aug 25 12:29:39 CEST 2006
* Daniel McBrearty <danielmcbrearty at gmail.com> [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/>
More information about the Catalyst
mailing list