public static String getMessage(String key, Locale locale) {

        ResourceBundle bundle = null;
        try {
            bundle = CmsResourceBundleLoader.getBundle("org.opencms.inactiveusers.custom", locale);
            return bundle.getString(key);
        } catch (MissingResourceException e) {
            LOG.info("Customization bundle not found: org.opencms.inactiveusers.custom", e);
            bundle = CmsResourceBundleLoader.getBundle("org.opencms.ui.messages", locale);
            return bundle.getString(key);
        }
    }
public static String getMessage ( String key , Locale locale ) { ResourceBundle bundle = null ; try { bundle = CmsResourceBundleLoader . getBundle ( "org.opencms.inactiveusers.custom" , locale ) ; return bundle . getString ( key ) ; } catch ( MissingResourceException e ) { LOG . info ( "Customization bundle not found: org.opencms.inactiveusers.custom" , e ) ; bundle = CmsResourceBundleLoader . getBundle ( "org.opencms.ui.messages" , locale ) ; return bundle . getString ( key ) ; } }
Gets the message for the given key and locale.<p>

@param key the key
@param locale the locale
@return the localized text