Skip to content

Instantly share code, notes, and snippets.

@timperrett
Created April 10, 2009 23:27
Show Gist options
  • Save timperrett/93363 to your computer and use it in GitHub Desktop.
Save timperrett/93363 to your computer and use it in GitHub Desktop.
// set the locale calculator
LiftRules.localeCalculator = Localizer.localeCalculator _
// bundle factor
LiftRules.resourceBundleFactories.prepend {
case (basename, locale) if localeAvalible_?(locale) => CacheResourceBundle(locale)
case _ => CacheResourceBundle(new java.util.Locale("en","GB"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment