summaryrefslogtreecommitdiff
path: root/web-ui/app/js
diff options
context:
space:
mode:
authorLisa Junger <ljunger@thoughtworks.com>2014-10-28 16:12:44 +0100
committerLisa Junger <ljunger@thoughtworks.com>2014-10-28 16:13:22 +0100
commit978681794f1c03ca97d8c8db2c06a107cc104916 (patch)
treef750bc204060e0b6e83985f45a117e303f01e23d /web-ui/app/js
parenta1ac3eb200b8eb9eea764fe4ea761c9c6b319c7e (diff)
adds internationalization to send button.
Diffstat (limited to 'web-ui/app/js')
-rw-r--r--web-ui/app/js/mail_view/ui/send_button.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/web-ui/app/js/mail_view/ui/send_button.js b/web-ui/app/js/mail_view/ui/send_button.js
index 5e3986f3..5454ab0a 100644
--- a/web-ui/app/js/mail_view/ui/send_button.js
+++ b/web-ui/app/js/mail_view/ui/send_button.js
@@ -20,9 +20,10 @@
define([
'flight/lib/component',
'flight/lib/utils',
- 'page/events'
+ 'page/events',
+ 'helpers/view_helper'
],
- function (defineComponent, utils, events) {
+ function (defineComponent, utils, events, viewHelper) {
return defineComponent(sendButton);
@@ -79,13 +80,14 @@ define([
this.trigger(document, events.ui.recipients.doCompleteInput);
this.disableButton();
- this.$node.text('Sending...');
+ this.$node.text(viewHelper.i18n('sending-mail'));
};
this.after('initialize', function () {
this.attr.recipients = {};
this.attr.inputHasMail = {};
+ this.$node.html(viewHelper.i18n('send-button'));
this.on(document, events.ui.recipients.inputHasMail, this.inputHasMail);
this.on(document, events.ui.recipients.inputHasNoMail, this.inputHasNoMail);