/** <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); }
public String getLocalizedString(Locale locale, String key, Object arg1) { StringManager stringManager = StringManagerFactory.getPresentationStringManager("org.infoglue.cms.applications", locale); return stringManager.getString(key, arg1); }