[Catalyst] Choosing the language
Larry Leszczynski
larryl at emailplus.org
Mon Oct 12 21:37:00 GMT 2009
Hi (again) Octavian -
> Is there a recommendation for storing the language ID in the URL in order
> to
> be as easy to get it from there?
>
> I want to have unique links for each URL, so I can't just put it in the
> cookies. Using ?lang=EN seems to be the easiest way, although it doesn't
> look nice.
>
> Putting it as the first element in the path info looks nice, but I don't
> know how to get it from there in a single controller/action and not in
> every
> action separately.
Here is one way to have it in the URL without all controllers needing to
be aware:
http://dev.catalyst.perl.org/wiki/wikicookbook/urlpathprefixing
HTH,
Larry
More information about the Catalyst
mailing list