From 116f7c756a5c0ac84e1ab634209338eacf2e8034 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 14 Feb 2020 09:18:55 +0000 Subject: [PATCH] JAL-1354 JAL-3528 fix bug from b594d516dac69eebcccdc743933880b00fb6d44c only try to look up message via formatMessage once. --- src/jalview/util/MessageManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } /** -- 1.7.10.2