summaryrefslogtreecommitdiff
path: root/BKUCommonGUI/src/main/java/at/gv
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2009-07-09 12:07:40 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2009-07-09 12:07:40 +0000
commitcb4496d82e8271102cda305e5490d6bc55e63fb6 (patch)
tree29675b9c00211f1b8f3db76d5a9105c4a3516190 /BKUCommonGUI/src/main/java/at/gv
parent696f0c337fdfa533ea3398c60a3d6ae4d0748d6c (diff)
downloadmocca-cb4496d82e8271102cda305e5490d6bc55e63fb6.tar.gz
mocca-cb4496d82e8271102cda305e5490d6bc55e63fb6.tar.bz2
mocca-cb4496d82e8271102cda305e5490d6bc55e63fb6.zip
log locale
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@403 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUCommonGUI/src/main/java/at/gv')
-rw-r--r--BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java
index e5cac7b7..4cab29e0 100644
--- a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java
+++ b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java
@@ -39,6 +39,7 @@ import java.text.MessageFormat;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
+import java.util.MissingResourceException;
import java.util.ResourceBundle;
import javax.swing.GroupLayout;
import javax.swing.ImageIcon;
@@ -1509,6 +1510,9 @@ public class BKUGUIImpl implements BKUGUIFacade {
////////////////////////////////////////////////////////////////////////////
/**
+ * Load applet messages bundle. Note that getBundle looks for classes based
+ * on the default Locale before it selects the base class!
+ *
* Called from constructor.
* Subclasses may override this method to ensure the message bundle is loaded
* once initButtonSize (called from constructor as well) is called.
@@ -1517,12 +1521,16 @@ public class BKUGUIImpl implements BKUGUIFacade {
*/
protected void loadMessageBundle(Locale locale) {
if (locale != null) {
+ // see [#378] Ignoring post parameter 'locale': bundle resolve-order not correct?!
Locale lang = new Locale(locale.getLanguage().substring(0, 2));
log.debug("loading applet resources for language: " + lang.toString());
messages = ResourceBundle.getBundle(MESSAGES_BUNDLE, lang);
} else {
+ log.debug("loading default language applet resources");
messages = ResourceBundle.getBundle(MESSAGES_BUNDLE);
}
+ // how the f*** you know the default Messages.properties is de?!
+ log.debug("applet messages loaded: " + messages.getLocale());
}
protected int initButtonSize() {