private String localize ( String key , String defaultValue ) { String result = defaultValue ; if ( bundle != null ) { try { result = bundle . getString ( key ) ; } catch ( MissingResourceException mre ) { } } return result ; }
Looks up key in the ResourceBundle and returns the corresponding value . If the bundle or the key doesn t exist returns the default value .