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@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/
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ List: Catalyst@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/