From: Jim Procter Date: Fri, 14 Feb 2020 09:18:55 +0000 (+0000) Subject: JAL-1354 JAL-3528 fix bug from b594d516dac69eebcccdc743933880b00fb6d44c only try... X-Git-Tag: Develop-2_11_2_0-d20201215~101^2~15 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=116f7c756a5c0ac84e1ab634209338eacf2e8034;p=jalview.git JAL-1354 JAL-3528 fix bug from b594d516dac69eebcccdc743933880b00fb6d44c only try to look up message via formatMessage once. --- diff --git a/src/jalview/util/MessageManager.java b/src/jalview/util/MessageManager.java index 2efaeb6..25e10c3 100644 --- a/src/jalview/util/MessageManager.java +++ b/src/jalview/util/MessageManager.java @@ -98,6 +98,7 @@ public class MessageManager } catch (Exception e) { log.warning("I18N missing: " + loc + "\t" + key); + // e.printStackTrace(); } String value = "[missing key] " + key + ""; @@ -110,7 +111,7 @@ public class MessageManager public static String formatMessage(String key, String[] params) { - return formatMessage(rb.getString(key), (Object[]) params); + return formatMessage(key, (Object[]) params); } /**