mirror of https://github.com/xwiki-labs/cryptpad
Remove hard-coded translation strings
This commit is contained in:
parent
3076a35c28
commit
1c77d0699f
|
@ -14,7 +14,6 @@ define([
|
|||
|
||||
var ssoEnabled = (Config.sso && Config.sso.list && Config.sso.list.length) ?'': '.cp-hidden';
|
||||
var ssoEnforced = (Config.sso && Config.sso.force) ? '.cp-hidden' : '';
|
||||
Msg.sso_login_description = "Login from SSO...."; // XXX
|
||||
|
||||
return [h('div#cp-main', [
|
||||
Pages.infopageTopbar(),
|
||||
|
|
|
@ -16,7 +16,6 @@ define([
|
|||
|
||||
var ssoEnabled = (Config.sso && Config.sso.list && Config.sso.list.length) ?'': '.cp-hidden';
|
||||
var ssoEnforced = (Config.sso && Config.sso.force) ? '.cp-hidden' : '';
|
||||
Msg.sso_register_description = "Register from SSO...."; // XXX
|
||||
|
||||
var termsLink = Pages.customURLs.terms;
|
||||
$(tos).find('a').attr({
|
||||
|
|
|
@ -7,11 +7,6 @@ define([
|
|||
'/customize/pages.js'
|
||||
], function (Config, $, h, UI, Msg, Pages) {
|
||||
|
||||
Msg.ssoauth_header = "SSO authentication"; // XXX
|
||||
Msg.ssoauth_form_hint_register = "Add a CryptPad password for extra security or leave empty and continue";
|
||||
Msg.ssoauth_form_hint_login = "Please enter your CryptPad password";
|
||||
Msg.continue = "Continue";
|
||||
|
||||
return function () {
|
||||
document.title = Msg.ssoauth_header;
|
||||
|
||||
|
|
|
@ -1529,8 +1529,6 @@ Example
|
|||
});
|
||||
|
||||
// Msg.admin_forcemfaHint, .admin_forcemfaTitle
|
||||
Messages.admin_forcemfaTitle = "Enforce MFA on this instance"; // XXX
|
||||
Messages.admin_forcemfaHint = "All CryptPad users will be asked to set up a multi-factor authenticator (TOTP) to log in to their account."; // XXX
|
||||
create['forcemfa'] = makeAdminCheckbox({
|
||||
key: 'forcemfa',
|
||||
getState: function () {
|
||||
|
|
|
@ -72,11 +72,6 @@ define([
|
|||
CodeMirror
|
||||
)
|
||||
{
|
||||
// XXX New translation keys
|
||||
Messages.calendar_rec_change_first = "You moved the first repeating event to different calendar. You can only apply this change to all repeated events."; // XXX New translation key
|
||||
Messages.calendar_rec_change = "You moved a repeating event to different calendar. You can only apply this change to this event or all repeated events."; // XXX New translation key
|
||||
Messages.calendar_desc = "Description"; // XXX maybe rename in `description`?
|
||||
delete Messages.calendar_location; // XXX Remove Messages.calendar_location from translation keys as it is not used anymore?
|
||||
|
||||
var SaveAs = window.saveAs;
|
||||
var APP = window.APP = {
|
||||
|
|
|
@ -4176,7 +4176,6 @@ define([
|
|||
modal = UI.openCustomModal(UI.dialog.customModal(content, {buttons: buttons }));
|
||||
};
|
||||
|
||||
Messages.loading_mfa_required = "Multi-factor Authentication is required on this instance. Please update your account using an anthenticator app and the form below."; // XXX
|
||||
UIElements.onMissingMFA = (common, config, cb) => {
|
||||
let content = h('div');
|
||||
let msg = h('div.cp-loading-missing-mfa', [
|
||||
|
|
|
@ -81,7 +81,6 @@ define([
|
|||
Sortable
|
||||
)
|
||||
{
|
||||
Messages.duplicate = 'Duplicate'; // XXX
|
||||
|
||||
var APP = window.APP = {
|
||||
blocks: {}
|
||||
|
|
|
@ -56,8 +56,6 @@ define([
|
|||
jKanban,
|
||||
Export)
|
||||
{
|
||||
Messages.kanban_showTags = 'See all tags'; // XXX
|
||||
Messages.kanban_hideTags = 'See less tags'; // XXX
|
||||
|
||||
var verbose = function (x) { console.log(x); };
|
||||
verbose = function () {}; // comment out to enable verbose logging
|
||||
|
|
Loading…
Reference in New Issue