From 1c77d0699f414496c67405a2f7b2dcb4203c764b Mon Sep 17 00:00:00 2001 From: David Benque Date: Thu, 14 Dec 2023 10:44:23 +0000 Subject: [PATCH] Remove hard-coded translation strings --- customize.dist/pages/login.js | 1 - customize.dist/pages/register.js | 1 - customize.dist/pages/ssoauth.js | 5 ----- www/admin/inner.js | 2 -- www/calendar/inner.js | 5 ----- www/common/common-ui-elements.js | 1 - www/form/inner.js | 1 - www/kanban/inner.js | 2 -- 8 files changed, 18 deletions(-) diff --git a/customize.dist/pages/login.js b/customize.dist/pages/login.js index 01760a616..269584d04 100644 --- a/customize.dist/pages/login.js +++ b/customize.dist/pages/login.js @@ -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(), diff --git a/customize.dist/pages/register.js b/customize.dist/pages/register.js index 403d4e737..82cfc9a7c 100644 --- a/customize.dist/pages/register.js +++ b/customize.dist/pages/register.js @@ -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({ diff --git a/customize.dist/pages/ssoauth.js b/customize.dist/pages/ssoauth.js index 2b6297684..a2975ee76 100644 --- a/customize.dist/pages/ssoauth.js +++ b/customize.dist/pages/ssoauth.js @@ -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; diff --git a/www/admin/inner.js b/www/admin/inner.js index de61e3274..0afa3d156 100644 --- a/www/admin/inner.js +++ b/www/admin/inner.js @@ -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 () { diff --git a/www/calendar/inner.js b/www/calendar/inner.js index f10ad359d..f19879091 100644 --- a/www/calendar/inner.js +++ b/www/calendar/inner.js @@ -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 = { diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 58a7b8858..e643f6add 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -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', [ diff --git a/www/form/inner.js b/www/form/inner.js index 971ab646c..5cd9e1449 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -81,7 +81,6 @@ define([ Sortable ) { - Messages.duplicate = 'Duplicate'; // XXX var APP = window.APP = { blocks: {} diff --git a/www/kanban/inner.js b/www/kanban/inner.js index 5df509f81..302b099dd 100644 --- a/www/kanban/inner.js +++ b/www/kanban/inner.js @@ -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