Package nz.org.riskscape.engine.i18n
package nz.org.riskscape.engine.i18n
-
ClassDescriptionHelper to render
Problem
s for display to users, i.e.Helper for handling translation of Enum values for user help, CLI display, etc.ClassLoader for use with buildingResourceBundle
s that uses an explicit search path for finding resources for use withResourceBundleControl
to control the order with which values from bundles over-write each other.Extends Java's defaultResourceBundle.Control
to: * 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 sourceAClassLoader
for loading resources from the suppliedURL
s only.MessageSource
implementation that will resolve messages: - from manyResourceBundle
baseNames - 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