public static String getAdminText(String string, String pluginName) {
        if (string == null) {
            return null;
        }
        // Look for the key symbol:
        if (string.indexOf("${") == 0 && string.indexOf("}") == string.length()-1) {
            return LocaleUtils.getLocalizedString(string.substring(2, string.length()-1), pluginName);
        }
        return string;
    }
Returns a text element for the admin console, applying the appropriate locale.
Internationalization logic will only be applied if the String is specially encoded
in the format "${key.name}". If it is, the String is pulled from the resource bundle.
If the pluginName is not {@code null}, the plugin's resource bundle will be used
to look up the key.

@param string the String.
@param pluginName the name of the plugin that the i18n String can be found in,
     or {@code null} if the standard Openfire resource bundle should be used.
@return the string, or if the string is encoded as an i18n key, the value from
     the appropriate resource bundle.
xmppserver/src/main/java/org/jivesoftware/admin/AdminConsole.java