From 978681794f1c03ca97d8c8db2c06a107cc104916 Mon Sep 17 00:00:00 2001 From: Lisa Junger Date: Tue, 28 Oct 2014 16:12:44 +0100 Subject: adds internationalization to send button. --- web-ui/app/js/mail_view/ui/send_button.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'web-ui/app/js') 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); -- cgit v1.2.3