code: public static String getI18nString(ResourceBundle bundle, String key, String def) {
          String s = bundle != null ? bundle.getString(key) : null;
          return s != null ? s : def;
      }
docs: Returns the internationalized version of the string if available, otherwise it returns <tt>def</tt>.
  
  @return the internationalized version of the string if available, otherwise it returns <tt>def</tt>