diff --git a/addons/mail/i18n/mail.pot b/addons/mail/i18n/mail.pot index becaa604898..48f154e8068 100644 --- a/addons/mail/i18n/mail.pot +++ b/addons/mail/i18n/mail.pot @@ -5236,9 +5236,9 @@ msgstr "" #. module: mail #. odoo-javascript -#: code:addons/mail/static/src/discuss/core/public/welcome_page.xml:0 +#: code:addons/mail/static/src/discuss/core/public/welcome_page.js:0 #, python-format -msgid "Logged as" +msgid "Logged in as" msgstr "" #. module: mail diff --git a/addons/mail/static/src/discuss/core/public/welcome_page.js b/addons/mail/static/src/discuss/core/public/welcome_page.js index 7ebfda342cb..b5ef4a3ed5f 100644 --- a/addons/mail/static/src/discuss/core/public/welcome_page.js +++ b/addons/mail/static/src/discuss/core/public/welcome_page.js @@ -4,6 +4,8 @@ import { Component, useRef, useState } from "@odoo/owl"; import { browser } from "@web/core/browser/browser"; import { useService } from "@web/core/utils/hooks"; +import { sprintf } from "@web/core/utils/strings"; +import { _t } from "@web/core/l10n/translation"; export class WelcomePage extends Component { static props = ["data?", "proceed?"]; @@ -115,4 +117,7 @@ export class WelcomePage extends Component { Boolean(this.state.videoStream) ); } + getLoggedInAsText() { + return sprintf(_t("Logged in as %s"), this.store.user.name); + } } diff --git a/addons/mail/static/src/discuss/core/public/welcome_page.xml b/addons/mail/static/src/discuss/core/public/welcome_page.xml index 7d2663de453..18df64a2fa3 100644 --- a/addons/mail/static/src/discuss/core/public/welcome_page.xml +++ b/addons/mail/static/src/discuss/core/public/welcome_page.xml @@ -32,7 +32,7 @@ -

Logged as

+