/** * Formats the message stored in the resource bundle (using a MessageFormat). * * @param key the resourcebundle key * @param param1 the parameter for the message * @return the formated string */ public String getString( final String key, final String... param1 ) { try { return formatMessage( key, param1 ); } catch ( final MissingResourceException e ) { return '!' + key + '!'; } }
/** * Formats the message stored in the resource bundle (using a MessageFormat). * * @param key the resourcebundle key * @param param1 the parameter for the message * @return the formated string */ public String getString(final String key, final String... param1) { try { return formatMessage(key, param1); } catch (final MissingResourceException e) { return '!' + key + '!'; } }