diff --git a/install/ui/src/freeipa/widgets/LoginScreen.js b/install/ui/src/freeipa/widgets/LoginScreen.js index 0d8d5ee70..6d236927f 100644 --- a/install/ui/src/freeipa/widgets/LoginScreen.js +++ b/install/ui/src/freeipa/widgets/LoginScreen.js @@ -53,6 +53,10 @@ define(['dojo/_base/declare', expired_msg: "Your session has expired. Please re-login.", + new_ui_msg: " We have launched " + + "new UI, " + + "try it out!", + form_auth_msg: " To log in with " + "username and password, enter them in the " + "corresponding fields, then click Login.", @@ -532,6 +536,7 @@ define(['dojo/_base/declare', set_login_aside_text: function() { var aside = ""; + aside += "

"+this.new_ui_msg+"

" if (this.password_enabled()) { aside += "

"+this.form_auth_msg+"

"; } @@ -557,6 +562,11 @@ define(['dojo/_base/declare', this.expired_msg ); + this.new_ui_msg = text.get( + spec.new_ui_msg || '@i18n:login.new_ui_msg', + this.new_ui_msg + ) + this.form_auth_msg = text.get( spec.form_auth_msg || '@i18n:login.form_auth', this.form_auth_msg @@ -586,6 +596,10 @@ define(['dojo/_base/declare', .replace('${protocol}', window.location.protocol) .replace('${host}', window.location.hostname); + this.new_ui_msg = this.new_ui_msg + .replace('${protocol}', window.location.protocol) + .replace('${host}', window.location.hostname); + this.password_change_complete = text.get( spec.password_change_complete || '@i18n:password.password_change_complete', diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index 283b43077..47f28ff34 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -411,6 +411,10 @@ class i18n_messages(Command): "login_certificate_desc": _("Log in using personal certificate"), "logout": _("Log out"), "logout_error": _("Log out error"), + "new_ui_msg": _( + " We have launched " + "new UI, " + "try it out!"), "password": _("Password"), "password_and_otp": _("Password or Password+One-Time Password"), "redirect_msg": _("You will be redirected in ${count}s"),