summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mixins/with_mail_edit_base.js
diff options
context:
space:
mode:
authorBruno Tavares <bruno.exz@gmail.com>2015-04-08 21:30:53 -0300
committerBruno Tavares <bruno.exz@gmail.com>2015-04-08 21:40:49 -0300
commited8fd002c53800b966fc1ef6115c2ff53fa042b1 (patch)
treed503a13239afeac79b47526d7178f0dacc911083 /web-ui/app/js/mixins/with_mail_edit_base.js
parent497488499fcf870df762919e42862ca6b52a0028 (diff)
Removes argument fixing of the i18n library #66
To introduce variables on the internationalization functions we should be able to pass extra arguments to the `i18n.t`. The way it was we could only pass the key and no more options to interpolate values.
Diffstat (limited to 'web-ui/app/js/mixins/with_mail_edit_base.js')
-rw-r--r--web-ui/app/js/mixins/with_mail_edit_base.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web-ui/app/js/mixins/with_mail_edit_base.js b/web-ui/app/js/mixins/with_mail_edit_base.js
index 9942e747..5efb8967 100644
--- a/web-ui/app/js/mixins/with_mail_edit_base.js
+++ b/web-ui/app/js/mixins/with_mail_edit_base.js
@@ -134,7 +134,7 @@ define(
} else {
this.trigger(
events.ui.userAlerts.displayMessage,
- {message: i18n.get('One or more of the recipients are not valid emails')}
+ {message: i18n('One or more of the recipients are not valid emails')}
);
this.trigger(events.mail.send_failed);
}
@@ -176,7 +176,7 @@ define(
this.draftSaved = function(event, data) {
this.attr.ident = data.ident;
if(!this.attr.silent) {
- this.trigger(document, events.ui.userAlerts.displayMessage, { message: i18n.get('Saved as draft.') });
+ this.trigger(document, events.ui.userAlerts.displayMessage, { message: i18n('Saved as draft.') });
}
delete this.attr.silent;
};