On 6/21/07, The Alchemist <[EMAIL PROTECTED]> wrote: > > I created a web application and now am working on making it > multilingual. I have decided for this url format: > www.example.com/de/other_parms/ > > Now the problem is in the way I manage controllers. > > One way of doing it is to have 1 root controller that redirects to > instances (kind of other root controllers) of a language controller: > > class Root(RootController): > de = langcontroller(de) > fr = langcontroller(fr) > def index(): > ... > > This way the language controllers (2 instances) are running in > memory. Would that be an overhead? > it depends on how different the language controllers are, if they just change the text language, I think you are better of with a default that will pick up the language (first param) and the rest and past it on to other method def default(language,*args,**kargs):
> What other ways do you suggest? > > Thank you. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

