summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/services
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-07-13 16:41:31 +0200
committerAlexandre Kühn <aku@odoo.com>2018-07-19 14:01:58 +0200
commit04c98eeb4810652aac248720184ae7cdfb6dda2a (patch)
tree13922ec0abd4a0bd307b67745ed4d7001eece2f3 /addons/mail/static/src/js/services
parent0f65c4ab3b5b5649aa4777d6c8d6d98d78929e21 (diff)
[FIX] mail: replace _lt to _t for mailboxes' name
Since mailboxes are added after the rpc 'mail/init_message', the translations are loaded. Therefore it is not necessary to lazily load the translations.
Diffstat (limited to 'addons/mail/static/src/js/services')
-rw-r--r--addons/mail/static/src/js/services/mail_manager.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/mail/static/src/js/services/mail_manager.js b/addons/mail/static/src/js/services/mail_manager.js
index 0ceeb809fde..6f159951436 100644
--- a/addons/mail/static/src/js/services/mail_manager.js
+++ b/addons/mail/static/src/js/services/mail_manager.js
@@ -884,19 +884,19 @@ var MailManager = AbstractService.extend({
_initializeMailboxes: function (data) {
this._addMailbox({
id: 'inbox',
- name: _lt("Inbox"),
+ name: _t("Inbox"),
mailboxCounter: data.needaction_inbox_counter || 0,
});
this._addMailbox({
id: 'starred',
- name: _lt("Starred"),
+ name: _t("Starred"),
mailboxCounter: data.starred_counter || 0,
});
if (data.is_moderator) {
this._addMailbox({
id: 'moderation',
- name: _lt("Moderate Messages"),
+ name: _t("Moderate Messages"),
mailboxCounter: data.moderation_counter || 0,
});
}