remove hardcoded translation

pull/1/head
ansuz 4 years ago
parent 653a3684c1
commit c7a731d30c

@ -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;

@ -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),
])
]);
}

@ -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

Loading…
Cancel
Save