summaryrefslogtreecommitdiff
path: root/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-11-03 09:37:14 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-11-03 09:37:14 +0000
commit9829de9c9b19dcca15676aaf9737195cc059a66c (patch)
tree46f1061f8b586a35965bf81e7f50c864437dae45 /BKUApplet/src/main/java/at/gv/egiz/bku/online/applet
parent4032e46810c24dc3f013de296a2133f4651696b9 (diff)
downloadmocca-9829de9c9b19dcca15676aaf9737195cc059a66c.tar.gz
mocca-9829de9c9b19dcca15676aaf9737195cc059a66c.tar.bz2
mocca-9829de9c9b19dcca15676aaf9737195cc059a66c.zip
local HelpListener DesktopAPI
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@138 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUApplet/src/main/java/at/gv/egiz/bku/online/applet')
-rw-r--r--BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/AppletHelpListener.java3
-rw-r--r--BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java6
2 files changed, 6 insertions, 3 deletions
diff --git a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/AppletHelpListener.java b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/AppletHelpListener.java
index a0305eb4..4040431f 100644
--- a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/AppletHelpListener.java
+++ b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/AppletHelpListener.java
@@ -20,6 +20,7 @@ package at.gv.egiz.bku.online.applet;
import at.gv.egiz.bku.gui.AbstractHelpListener;
import java.applet.AppletContext;
import java.net.URL;
+import java.util.Locale;
/**
*
@@ -29,7 +30,7 @@ public class AppletHelpListener extends AbstractHelpListener {
protected AppletContext ctx;
- public AppletHelpListener(AppletContext ctx, URL helpURL, String locale) {
+ public AppletHelpListener(AppletContext ctx, URL helpURL, Locale locale) {
super(helpURL, locale);
if (ctx == null) {
throw new RuntimeException("no applet context provided");
diff --git a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
index 2b0188bb..50d66d80 100644
--- a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
+++ b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
@@ -65,9 +65,11 @@ public class BKUApplet extends JApplet {
log.debug("Called init()");
HttpsURLConnection.setDefaultSSLSocketFactory(InternalSSLSocketFactory.getInstance());
String localeString = getMyAppletParameter(LOCALE_PARAM_KEY);
+ Locale locale = null;
if (localeString != null) {
+ locale = new Locale(localeString);
resourceBundle = ResourceBundle.getBundle(RESOURCE_BUNDLE_BASE,
- new Locale(localeString));
+ locale);
} else {
resourceBundle = ResourceBundle.getBundle(RESOURCE_BUNDLE_BASE);
}
@@ -85,7 +87,7 @@ public class BKUApplet extends JApplet {
AppletHelpListener helpListener = null;
try {
URL helpURL = getMyAppletParameterURL(HELP_URL);
- helpListener = new AppletHelpListener(getAppletContext(), helpURL, localeString);
+ helpListener = new AppletHelpListener(getAppletContext(), helpURL, locale);
} catch (MalformedURLException ex) {
log.error("invalid help URL: " + ex.getMessage());
}