[Catalyst] Multi-language and REST

Knut-Olav Hoven hovenko at linpro.no
Fri Apr 25 14:08:42 BST 2008


On Friday 25 April 2008 14:44:38 Ian Docherty wrote:
> I have been pondering how to take an existing Catalyst application and
> make it multi-lingual.
>
> I would prefer to use a RESTful method, so this would translate /foo/bar
> to /en/foo/bar or /fr/foo/bar (for English and French respectively).

The elegang solution is to make use of the request header Accept-Language, but 
not many users know how to change this setting in their browsers.

http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z12

>
> The problem as I see it is how to do this. I don't want to move all my
> controllers, e.g. MyApp::Controller::Foo::Bar to
> MyApp::Controller::Lang::Foo::Bar
>
> What other alternatives are there?
>
> Regards
> Ian
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/



-- 
Knut-Olav Hoven
Systemutvikler               mob: +47 986 71 700
Linpro AS                    http://www.linpro.no/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080425/e36998b4/attachment.pgp


More information about the Catalyst mailing list