diff --git a/site-manage-participant-helper/src/bundle/org/sakaiproject/site/tool/participant/bundle/sitesetupgeneric.properties b/site-manage-participant-helper/src/bundle/org/sakaiproject/site/tool/participant/bundle/sitesetupgeneric.properties index f7a1d50..9409909 100644 --- a/site-manage-participant-helper/src/bundle/org/sakaiproject/site/tool/participant/bundle/sitesetupgeneric.properties +++ b/site-manage-participant-helper/src/bundle/org/sakaiproject/site/tool/participant/bundle/sitesetupgeneric.properties @@ -164,6 +164,7 @@ java.user = User java.username = ''{0}'' is not a valid username. java.notemailid = ''{0}'' is not an email id. java.emailaddress = ''{0}'' is not a valid email address. +java.emailbaddomain = ''{0}'' has a domain that cannot be used for ''{1}'' java.roletype = Please choose the role type. diff --git a/site-manage-participant-helper/src/java/org/sakaiproject/site/tool/helper/participant/impl/SiteAddParticipantHandler.java b/site-manage-participant-helper/src/java/org/sakaiproject/site/tool/helper/participant/impl/SiteAddParticipantHandler.java index 4f21af7..4a27d98 100644 --- a/site-manage-participant-helper/src/java/org/sakaiproject/site/tool/helper/participant/impl/SiteAddParticipantHandler.java +++ b/site-manage-participant-helper/src/java/org/sakaiproject/site/tool/helper/participant/impl/SiteAddParticipantHandler.java @@ -763,9 +763,9 @@ public class SiteAddParticipantHandler { } else if (nonOfficialAccount != null && !isValidDomain(nonOfficialAccount)) { // wrong string inside nonOfficialAccount id - targettedMessageList.addMessage(new TargettedMessage("java.emailaddress", - new Object[] { nonOfficialAccount }, - TargettedMessage.SEVERITY_ERROR)); + targettedMessageList.addMessage(new TargettedMessage("java.emailbaddomain", + new Object[] { nonOfficialAccount, messageLocator.getMessage("add.nonofficial.title")}, + TargettedMessage.SEVERITY_ERROR)); } else { try { // if the nonOfficialAccount user already exists