remove hardcoded translation

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

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

@ -31,10 +31,9 @@ define([
}; };
if (Config.restrictRegistration) { if (Config.restrictRegistration) {
Msg.register_closed = "This instance does not allow registration at the moment."; // XXX
return frame([ return frame([
h('div.cp-restricted-registration', [ 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', 'css!/bower_components/components-font-awesome/css/font-awesome.min.css',
], function ($, Login, Cryptpad, Test, Cred, UI, Util, Realtime, Constants, Feedback, LocalStore, h) { ], function ($, Login, Cryptpad, Test, Cred, UI, Util, Realtime, Constants, Feedback, LocalStore, h) {
var Messages = Cryptpad.Messages; var Messages = Cryptpad.Messages;
Messages.register_registrationIsClosed = "REGISTRATION IS CLOSED ON THIS INSTANCE."; // XXX
$(function () { $(function () {
if (LocalStore.isLoggedIn()) { if (LocalStore.isLoggedIn()) {
// already logged in, redirect to drive // already logged in, redirect to drive

Loading…
Cancel
Save