return isEnabled;
}
+ /**
+ * Loads resource bundle for given locale. This must be implemented per
+ * project so all projects can still customize their methods. Calling
+ * ResourceBundleloadBundle() in this class means that also the bundle files
+ * must be present here.
+ * <p>
+ * @param locale Locale from e.g. FacesContext
+ * <p>
+ * @return Initialized and loaded resource bundle
+ */
+ protected abstract ResourceBundle loadResourceBundle (final Locale locale);
+
/**
* Sends given message to configured queue
* <p>
Locale locale = FacesContext.getCurrentInstance().getViewRoot().getLocale();
// Get bundle bundle
- ResourceBundle bundle = ResourceBundle.getBundle("org.mxchange.localization.bundle", locale);
+ ResourceBundle bundle = this.loadResourceBundle(locale);
// Default is i18nKey
String message = MessageFormat.format("!{0}!", i18nKey); //NOI18N