Re: [Catalyst] Multi-language and REST

2008-05-21 Thread John Beppu
On Mon, Apr 28, 2008 at 7:17 AM, Geir Aalberg <[EMAIL PROTECTED]> wrote: > > On 25 Apr 2008, at 14:44 , 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 /f

Re: [Catalyst] Multi-language and REST

2008-05-03 Thread Daniel McBrearty
Haven't been looking in here for a while, just saw this thread. I have a multilingual app at http://www.engoi.com which uses Chained to do this. It works really well, and makes Do Not Repeat Yourself quite easy to achieve. In fact, for many actions, *two* languages are selected - the native and t

Re: [Catalyst] Multi-language and REST

2008-04-28 Thread Octavian Rasnita
From: "Matt Rosin" <[EMAIL PROTECTED]> FWIW after all that such a module should allow keys stored in cookies to supplement/overwrite the url. So instead of prepending lang code, I could keep the same url but have a javascript language button set the language. I think that the pages with differe

Re: [Catalyst] Multi-language and REST

2008-04-28 Thread Matt Rosin
FWIW after all that such a module should allow keys stored in cookies to supplement/overwrite the url. So instead of prepending lang code, I could keep the same url but have a javascript language button set the language. /me shuts up now. Matt R. ___ L

Re: [Catalyst] Multi-language and REST

2008-04-28 Thread Matt Rosin
I think other cases show it is not only an i18n issue. In a business listings site I made I have x.com/dir/CityName/Business_Services/Advertising for example. The top level category Business_Services is optional as the secondary level category name is unique. The CityName could be any city in the

Re: [Catalyst] Multi-language and REST

2008-04-28 Thread Geir Aalberg
On 25 Apr 2008, at 14:44 , 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

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread J. Shirley
On Fri, Apr 25, 2008 at 1:45 PM, Christopher H. Laco <[EMAIL PROTECTED]> wrote: > > If it's just for your app.. put it in MyApp.pm... > If you want to do something for the rest of us...personally... I'd suggest > making this part of the I18N plugin... since it's really just another way to > set t

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Christopher H. Laco
Ian Docherty wrote: Christopher H. Laco wrote: Ian Docherty wrote: Christopher H. Laco wrote: 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/fo

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Ian Docherty
Christopher H. Laco wrote: Ian Docherty wrote: Christopher H. Laco wrote: 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

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Ashley
On Apr 25, 2008, at 10:28 AM, Christopher H. Laco wrote: If changing Accept-Language is too much, (or people want to view a language other than their native), then look at language= in the query params first..if it's empty...honor Accept-Language... rather than forcing // at the front of all

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Christopher H. Laco
Dave Rolsky wrote: On Fri, 25 Apr 2008, Ashley wrote: I agree that it's content, not formatting. If CSS/client-side-JS can (in a practical fashion) change it, it's formatting, otherwise, it's content. I should have used the word representation. With REST, you'd have the same URI for one res

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Dave Rolsky
On Fri, 25 Apr 2008, Ashley wrote: I agree that it's content, not formatting. If CSS/client-side-JS can (in a practical fashion) change it, it's formatting, otherwise, it's content. I should have used the word representation. With REST, you'd have the same URI for one resource, but you might

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Ashley
On Apr 25, 2008, at 8:55 AM, Ian Docherty wrote: Dave Rolsky wrote: On Fri, 25 Apr 2008, Ian Docherty wrote: http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z12 Yes, I have done this previously, it is elegant, but not RESTful and does not make it easy for users to change their settings

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Ian Docherty
Dave Rolsky wrote: On Fri, 25 Apr 2008, Ian Docherty wrote: http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z12 Yes, I have done this previously, it is elegant, but not RESTful and does not make it easy for users to change their settings on a site-by-site basis dynamically, as you could i

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Dave Rolsky
On Fri, 25 Apr 2008, Ian Docherty wrote: http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z12 Yes, I have done this previously, it is elegant, but not RESTful and does not make it easy for users to change their settings on a site-by-site basis dynamically, as you could if you provided a lan

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Christopher H. Laco
Ian Docherty wrote: Christopher H. Laco wrote: 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 res

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Ian Docherty
Christopher H. Laco wrote: 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 pro

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Bill Moseley
On Fri, Apr 25, 2008 at 01:44:38PM +0100, 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 res

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Ian Docherty
Knut-Olav Hoven wrote: 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 Fr

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Christopher H. Laco
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 problem as I see it is how to do

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Knut-Olav Hoven
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).

[Catalyst] Multi-language and REST

2008-04-25 Thread Ian Docherty
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 problem as I see it is how to do this. I don't want t