private static ResourceBundle rb;
- private static Logger log = Logger.getLogger(MessageManager.class
- .getCanonicalName());
+ private static Logger log = Logger
+ .getLogger(MessageManager.class.getCanonicalName());
private static Locale loc;
public static String formatMessage(String key, Object... params)
{
+ return MessageFormat.format(rb.getString(key), params);
+ }
+
+ public static String formatMessage(String key, String[] params)
+ {
return MessageFormat.format(rb.getString(key), (Object[]) params);
}
name = rb.getString(smkey);
} catch (Exception x)
{
- log.finest("I18N missing key with root " + keyroot + ": " + loc
- + "\t" + smkey);
+ log.finest("I18N missing key with root " + keyroot + ": " + loc + "\t"
+ + smkey);
}
return name;
}