Skip to content

Commit

Permalink
use bundle in 'unused' method as well
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Apr 19, 2018
1 parent 3027e2b commit d25e354
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/edu/harvard/iq/dataverse/MailServiceBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ public void sendMail(String host, String reply, String to, String subject, Strin
InternetAddress[] recipients = new InternetAddress[recipientStrings.length];
try {
InternetAddress fromAddress=getSystemAddress();
fromAddress.setPersonal(fromAddress.getPersonal() + " on behalf of " + reply, charset);
fromAddress.setPersonal(BundleUtil.getStringFromBundle("contact.delegation", Arrays.asList(
fromAddress.getPersonal(), reply)), charset);
msg.setFrom(fromAddress);
msg.setReplyTo(new Address[] {new InternetAddress(reply, charset)});
for (int i = 0; i < recipients.length; i++) {
Expand Down

0 comments on commit d25e354

Please sign in to comment.