summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2010-12-09 16:04:11 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2010-12-09 16:04:11 +0000
commite7d3260341eb97ca63d031aaa86dc1c0fa0fff83 (patch)
tree50d6d5657d4c2ac035f8d27a3fddf1c163d0637e
parent5e1b2cf0995debaef949805ed623741347253fb9 (diff)
downloadmocca-e7d3260341eb97ca63d031aaa86dc1c0fa0fff83.tar.gz
mocca-e7d3260341eb97ca63d031aaa86dc1c0fa0fff83.tar.bz2
mocca-e7d3260341eb97ca63d031aaa86dc1c0fa0fff83.zip
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
-rw-r--r--BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/HelpListener.java4
1 files changed, 1 insertions, 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