From e7d3260341eb97ca63d031aaa86dc1c0fa0fff83 Mon Sep 17 00:00:00 2001 From: clemenso Date: Thu, 9 Dec 2010 16:04:11 +0000 Subject: if requested locale not available for resource bundle loading, use JVM default locale (uses system default locale) Issue #MOCCA-771 - German online-help is not linked correctly. git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@852 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/HelpListener.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/HelpListener.java b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/HelpListener.java index 9bfd89ae..8b950e05 100644 --- a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/HelpListener.java +++ b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/HelpListener.java @@ -40,8 +40,6 @@ public class HelpListener implements MouseListener, KeyListener, HelpURLProvider public HelpListener(URL baseURL, Locale locale) { - this.baseURL = baseURL; - if (locale != null) { log.trace("Check for support of requested help locale {}.", locale); messageBundle = ResourceBundle.getBundle(MESSAGE_BUNDLE, locale); @@ -60,7 +58,7 @@ public class HelpListener implements MouseListener, KeyListener, HelpURLProvider } } log.debug("Setting help context to {}.", baseURL); - + this.baseURL = baseURL; } @Override -- cgit v1.2.3