2
0
Fork 0

[svn r388] made very good progress on JSF templated frontend

This commit is contained in:
willemc 2009-11-13 01:40:13 +01:00
parent 9a605f177a
commit c1a8402ae8
57 changed files with 2783 additions and 553 deletions

View file

@ -41,6 +41,11 @@ import com.idcanet.vasc.core.entry.VascEntryResourceResolver;
*/
public class VascI18nTextValue implements VascEntryResourceResolver {
private Logger logger = null;
public VascI18nTextValue() {
logger = Logger.getLogger(VascI18nTextValue.class.getName());
}
private String getKeyMapping(String key) {
return key;
@ -50,7 +55,7 @@ public class VascI18nTextValue implements VascEntryResourceResolver {
return i18n(getKeyMapping(key),params);
}
static private String i18n(String key,Object...params) {
private String i18n(String key,Object...params) {
if (key==null) { throw new NullPointerException("key may not be null"); }
try {
String text = ResourceBundle.getBundle("resources.i18n.vasc").getString(key);
@ -60,7 +65,7 @@ public class VascI18nTextValue implements VascEntryResourceResolver {
}
return text;
} catch(MissingResourceException e){
Logger.getAnonymousLogger().finer("Missing i18n or non i18n key: "+key);
logger.finer("Missing i18n or non i18n key: "+key);
return key;
}
}