remove hardcoded translation

This commit is contained in:
ansuz 2021-05-04 13:45:44 +05:30
parent 653a3684c1
commit c7a731d30c
3 changed files with 2 additions and 5 deletions

View File

@ -535,8 +535,7 @@ define([
});
break;
case 'E_RESTRICTED':
Messages.register_restrictedError = "Registration is restricted on this instance"; // XXX
UI.errorLoadingScreen(Messages.register_restrictedError); // XXX
UI.errorLoadingScreen(Messages.register_registrationIsClosed);
break;
default: // UNHANDLED ERROR
hashing = false;

View File

@ -31,10 +31,9 @@ define([
};
if (Config.restrictRegistration) {
Msg.register_closed = "This instance does not allow registration at the moment."; // XXX
return frame([
h('div.cp-restricted-registration', [
h('p', Msg.register_closed),
h('p', Msg.register_registrationIsClosed),
])
]);
}

View File

@ -15,7 +15,6 @@ define([
'css!/bower_components/components-font-awesome/css/font-awesome.min.css',
], function ($, Login, Cryptpad, Test, Cred, UI, Util, Realtime, Constants, Feedback, LocalStore, h) {
var Messages = Cryptpad.Messages;
Messages.register_registrationIsClosed = "REGISTRATION IS CLOSED ON THIS INSTANCE."; // XXX
$(function () {
if (LocalStore.isLoggedIn()) {
// already logged in, redirect to drive