1.1 --- a/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java Sat Sep 12 05:00:28 2009 +0200
1.2 +++ b/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java Sat Sep 12 09:11:13 2009 +0200
1.3 @@ -248,18 +248,16 @@
1.4 }
1.5
1.6 private Viewable viewable(String page, Document doc, Object... more) {
1.7 - String bundle = page.split("\\.")[0];
1.8 -
1.9 ResourceBundle rb = null;
1.10 for (Locale l : headers.getAcceptableLanguages()) {
1.11 try {
1.12 - rb = ResourceBundle.getBundle("cz.xelfi.quoridor.freemarkerdor.UI." + bundle, l);
1.13 + rb = ResourceBundle.getBundle("cz.xelfi.quoridor.freemarkerdor.UI.Bundle", l);
1.14 } catch (MissingResourceException e) {
1.15 // OK
1.16 }
1.17 }
1.18 if (rb == null) {
1.19 - rb = ResourceBundle.getBundle("cz.xelfi.quoridor.freemarkerdor.UI." + bundle, Locale.ENGLISH);
1.20 + rb = ResourceBundle.getBundle("cz.xelfi.quoridor.freemarkerdor.UI.Bundle", Locale.ENGLISH);
1.21 }
1.22
1.23 Map<String,Object> map = new HashMap<String,Object>();