예제 #1
0
  /** <todo>Move to a ConstraintExceptionHelper class?</todo> */
  private String getLocalizedErrorMessage(Locale locale, String errorCode) {
    // <todo>fetch packagename from somewhere</todo>
    StringManager stringManager =
        StringManagerFactory.getPresentationStringManager("org.infoglue.cms.entities", locale);

    // check if a specific error message exists - <todo/>
    // nah, use the general error message
    return stringManager.getString(errorCode);
  }
예제 #2
0
  public String getLocalizedString(Locale locale, String key, Object arg1) {
    StringManager stringManager =
        StringManagerFactory.getPresentationStringManager("org.infoglue.cms.applications", locale);

    return stringManager.getString(key, arg1);
  }