Skip to content

Instantly share code, notes, and snippets.

View karma4u101's full-sized avatar
💭
I may be slow to respond.

Peter Petersson karma4u101

💭
I may be slow to respond.
View GitHub Profile
@karma4u101
karma4u101 / Boot.scala
Created July 18, 2012 06:09
Lift - Locale via user action (clicking flag img)
package bootstrap.liftweb
import java.util.Locale
:
//object holding the chosen locale during the session, can be updated by user at any time.
object localeOverride extends SessionVar[Box[Locale]](Empty)
class Boot extends Loggable {
def boot {
: