Package su.onno.ui

Class UiMessageBundles

java.lang.Object
su.onno.ui.UiMessageBundles

public final class UiMessageBundles extends Object
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:

  1. su/onno/ui/messages/messages-<locale>.properties — bundled with onno (ships ru).
  2. 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 Details

    • load

      public static Map<String,String> load(String locale)
      The message overrides for locale, merged from the bundled then the consumer file (consumer wins). Empty for "en", blank, or an unknown locale.