From: Volker Theile Date: Tue, 27 Aug 2019 13:46:46 +0000 (+0200) Subject: mgr/dashboard: Add missing text translation X-Git-Tag: v15.1.0~1719^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F29934%2Fhead;p=ceph.git mgr/dashboard: Add missing text translation Signed-off-by: Volker Theile --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.ts index 0b300684caa..80f562c1ed0 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.ts @@ -38,7 +38,7 @@ export class UserFormComponent implements OnInit { userFormMode = UserFormMode; mode: UserFormMode; allRoles: Array; - messages = new SelectMessages({ empty: 'There are no roles.' }, this.i18n); + messages = new SelectMessages({ empty: this.i18n('There are no roles.') }, this.i18n); action: string; resource: string; @@ -56,7 +56,7 @@ export class UserFormComponent implements OnInit { ) { this.resource = this.i18n('user'); this.createForm(); - this.messages = new SelectMessages({ empty: 'There are no roles.' }, this.i18n); + this.messages = new SelectMessages({ empty: this.i18n('There are no roles.') }, this.i18n); } createForm() {