[Catalyst] Language selection in URLs

Bill Moseley moseley at hank.org
Sun Nov 15 15:06:54 GMT 2009


What's your preferred approach to specifying a language tag in a URL?  Is
there strong argument for one over the other?

http://example.com/en_us/path/to/some/index.html # language prefix

http://example.com/path/to/some/index.html?lang=3Den_us

Are pages in different languages different resources or different versions
of the same resource?

Obviously, the prefix is easier if you use relative URLs, but uri_for makes
adding the query parameter easy.  Although, probably could argue that the
prefix approach is more efficient than wrapping uri_for for every generated
link.

-- =

Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20091115/c13d7=
9ef/attachment.htm


More information about the Catalyst mailing list