Package nz.org.riskscape.engine.i18n
package nz.org.riskscape.engine.i18n
-
ClassesClassDescriptionHelper to render
Problems for display to users, i.e.Helper for handling translation of Enum values for user help, CLI display, etc.ClassLoader for use with buildingResourceBundles that uses an explicit search path for finding resources for use withResourceBundleControlto control the order with which values from bundles over-write each other.Extends Java's defaultResourceBundle.Controlto: * Assumes properties files are encoded in utf-8 instead of latin-1 * Support loading the same named file from different locations to take the super-set of values from all, but with last-one-wins behavior, where last-one is the last resource identified by the classloader as having that name * Disables fall-back locale behavior so that this can be handled in the message sourceAClassLoaderfor loading resources from the suppliedURLs only.MessageSourceimplementation that will resolve messages: - from manyResourceBundlebaseNames - will merge property files with the same base name across a classpath usingMergedPropertiesResourceBundle- will fallback through locales for values using built-in ResourceBundle parenting logic