Package su.onno.ui
Class UiMessageBundles
java.lang.Object
su.onno.ui.UiMessageBundles
Loads a built-in chrome message bundle for
onno.ui.locale — the base layer between the
English UiMessages.DEFAULTS and a deployment's explicit onno.ui.messages overrides.
A bundle is a UTF-8 .properties file of the same keys as UiMessages.DEFAULTS. Two
classpath locations are consulted, later wins so a consumer can override a shipped locale (or add a
new one) without touching the framework:
su/onno/ui/messages/messages-<locale>.properties— bundled with onno (shipsru).onno/messages/messages-<locale>.properties— the consumer app's own file, wins.
"en" (and a blank locale) returns an empty map — English is the code defaults, no file. A
missing bundle is a no-op (the resolver simply falls back to the English defaults).
-
Method Summary
-
Method Details
-
load
The message overrides forlocale, merged from the bundled then the consumer file (consumer wins). Empty for"en", blank, or an unknown locale.
-