Skip to content

Commit

Permalink
First set of localization work
Browse files Browse the repository at this point in the history
  • Loading branch information
aldaris committed Oct 20, 2014
1 parent 95ace56 commit f8dd829
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/jenkins/plugins/hipchat/HipChatNotifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,13 @@ public FormValidation doSendTestNotification(@QueryParameter("hipchat.server") S
@QueryParameter("hipchat.token") String token, @QueryParameter("hipchat.room") String room,
@QueryParameter("hipchat.sendAs") String sendAs) {
HipChatService service = new StandardHipChatService(server, token, room, sendAs);
service.publish("Test notification " + ++testNotificationCount);
return FormValidation.ok("Test notification sent");
service.publish(Messages.TestNotification(++testNotificationCount));
return FormValidation.ok(Messages.TestNotificationSent());
}

@Override
public String getDisplayName() {
return "HipChat Notifications";
return Messages.DisplayName();
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DisplayName=HipChat Notifications
TestNotification=Test Notification {0}
TestNotificationSent=Test Notification Sent

0 comments on commit f8dd829

Please sign in to comment.