Created
February 27, 2009 17:19
-
-
Save timperrett/71578 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def resourceBundles: List[ResourceBundle] = { | |
_resBundle.value match { | |
case Nil => { | |
_resBundle.set(LiftRules.resourceNames.flatMap(name => tryo( | |
List(ResourceBundle.getBundle(name, locale)) | |
).openOr( | |
LiftRules.resourceBundleFactories.toList.find(_.isDefinedAt(locale)).toList.map(_.apply(locale)) | |
))) | |
_resBundle.value | |
} | |
case bundles => bundles | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment