Skip to content

Instantly share code, notes, and snippets.

@timperrett
Created February 27, 2009 15:27
Show Gist options
  • Save timperrett/71523 to your computer and use it in GitHub Desktop.
Save timperrett/71523 to your computer and use it in GitHub Desktop.
/**
* Get the resource bundle for the current locale
*/
def resourceBundles: List[ResourceBundle] = {
_resBundle.value match {
case Nil => _resBundle.set(LiftRules.resourceNames.flatMap(name => tryo(
List(ResourceBundle.getBundle(name, locale))
) openOr Nil))
_resBundle.value
case bundles => bundles
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment