提交 bf45d9ed 编写于 作者: A André Twupack 提交者: Kohsuke Kawaguchi

Proper resource bundle entries for testing email

上级 385f07d1
......@@ -460,11 +460,10 @@ public class Mailer extends Notifier {
msg.setSentDate(new Date());
msg.setRecipient(Message.RecipientType.TO, new InternetAddress(adminAddress));
Transport.send(msg);
return FormValidation.ok("Email was successfully sent");
Transport.send(msg);
return FormValidation.ok(Messages.Mailer_EmailSentSuccessfully());
} catch (MessagingException e) {
return FormValidation.errorWithMarkup("<p>Failed to send out e-mail</p><pre>"+Util.escape(Functions.printThrowable(e))+"</pre>");
return FormValidation.errorWithMarkup("<p>"+Messages.Mailer_FailedToSendEmail()+"</p><pre>"+Util.escape(Functions.printThrowable(e))+"</pre>");
}
}
......
......@@ -90,6 +90,8 @@ Mailer.Suffix.Error=This field should be ''@'' followed by a domain name.
Mailer.Address.Not.Configured=address not configured yet <nobody@nowhere>
Mailer.Localhost.Error=Please set a valid host name, instead of localhost
Mailer.UserProperty.DisplayName=E-mail
Mailer.EmailSentSuccessfully=Email was successfully sent
Mailer.FailedToSendEmail=Failed to send out e-mail
Maven.DisplayName=Invoke top-level Maven targets
Maven.ExecFailed=command execution failed
......
......@@ -90,6 +90,8 @@ Mailer.Unknown.Host.Name=Unbekannter Host:
Mailer.Suffix.Error=Der Inhalt dieses Feldes sollte ''@'', gefolgt von einem Domain-Namen, sein.
Mailer.Address.Not.Configured=Adresse nicht konfiguriert <nobody@nowhere>
Mailer.Localhost.Error=Bitte verwenden Sie einen konkreten Hostnamen anstelle von ''localhost''.
Mailer.EmailSentSuccessfully=Das Versenden der E-Mail war erfolgreich
Mailer.FailedToSendEmail=Das Versenden der E-Mail ist fehlgeschlagen
Maven.DisplayName=Maven Goals aufrufen
Maven.ExecFailed=Befehlsausfhrung fehlgeschlagen
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册