public static String getLocalizedString(String key) {
        Locale locale = JiveGlobals.getLocale();

        try {
            ResourceBundle bundle = ResourceBundle.getBundle(resourceBaseName, locale);
            return getLocalizedString(key, locale, null, bundle);
        } catch (MissingResourceException mre) {
            Log.error(mre.getMessage());
            return key;
        }
    }
Returns an internationalized string loaded from a resource bundle.
The locale used will be the locale specified by JiveGlobals.getLocale().

@param key the key to use for retrieving the string from the
     appropriate resource bundle.
@return the localized string.
xmppserver/src/main/java/org/jivesoftware/util/LocaleUtils.java