[Lift] Re: Automatically change Language (Locale)

2009-04-14 Thread João Pereira
Thank you, it's working. Another (newbie) question: How do I submit the form automatically when the user change the value in select? I have: lift:LanguageUtils.changeLanguage form=post My Language is: languageSelecction:language/ languageSelecction:changeLanguage/

[Lift] Re: Automatically change Language (Locale)

2009-04-13 Thread David Pollak
In LiftRules: var localeCalculator: Box[HttpServletRequest] = Locale = defaultLocaleCalculator _ def defaultLocaleCalculator(request: Box[HttpServletRequest]) = request.flatMap(_.getLocale() match {case null = Empty case l: Locale = Full(l)}).openOr(Locale.getDefault()) You can change the

[Lift] Re: Automatically change Language (Locale)

2009-04-13 Thread Timothy Perrett
FYI - if you want an example, check this out: http://github.com/dpp/liftweb/blob/29f44b91e28eaceaa784322eaad8f2bb909fa9aa/ sites/JPADemo/JPADemo-web/src/main/scala/bootstrap/liftweb/Boot.scala#L67 Cheers, Tim --~--~-~--~~~---~--~~ You received this message