remove XXX relating to translation keys

pull/1/head
David Benqué 5 years ago
parent e8fac0333a
commit 8fd8881085

@ -2426,9 +2426,9 @@ define([
case 'access': case 'access':
button = $('<button>', { button = $('<button>', {
'class': 'fa fa-unlock-alt cp-toolbar-icon-access', 'class': 'fa fa-unlock-alt cp-toolbar-icon-access',
title: "ACCESS", // XXX title: Messages.accessButton,
}).append($('<span>', {'class': 'cp-toolbar-drawer-element'}) }).append($('<span>', {'class': 'cp-toolbar-drawer-element'})
.text("ACCESS")) // XXX .text(Messages.accessButton))
.click(common.prepareFeedback(type)) .click(common.prepareFeedback(type))
.click(function () { .click(function () {
common.isPadStored(function (err, data) { common.isPadStored(function (err, data) {
@ -3391,7 +3391,7 @@ define([
attributes: { attributes: {
'class': 'cp-toolbar-menu-logout-everywhere fa fa-plug', 'class': 'cp-toolbar-menu-logout-everywhere fa fa-plug',
}, },
content: h('span', "CLOSE REMOTE SESSIONS") // XXX Messages.settings_logoutEverywhereTitle) content: h('span', Messages.settings_logoutEverywhereTitle)
}); });
options.push({ options.push({
tag: 'a', tag: 'a',
@ -4235,7 +4235,7 @@ define([
msg += Messages.errorCopy; msg += Messages.errorCopy;
} }
} else if (err.type === 'ERESTRICTED') { } else if (err.type === 'ERESTRICTED') {
msg = Messages.restrictedError || "RESTRICTED"; // XXX msg = Messages.restrictedError;
} }
var sframeChan = common.getSframeChannel(); var sframeChan = common.getSframeChannel();
sframeChan.event('EV_SHARE_OPEN', {hidden: true}); sframeChan.event('EV_SHARE_OPEN', {hidden: true});

@ -11,10 +11,7 @@ define([
Messages, nThen) { Messages, nThen) {
var Access = {}; var Access = {};
// XXX contacts, teams, access_noContact
Messages.contacts = "Contacts"; // XXX
Messages.teams = "Teams"; // XXX
Messages.access_noContact = "No other contact to add"; // XXX
var evRedrawAll = Util.mkEvent(); var evRedrawAll = Util.mkEvent();
@ -120,7 +117,7 @@ define([
if (teamOwner && teams[teamOwner] && teams[teamOwner].edPublic === ed) { me = true; } if (teamOwner && teams[teamOwner] && teams[teamOwner].edPublic === ed) { me = true; }
if (ed === edPublic && !teamOwner) { me = true; } if (ed === edPublic && !teamOwner) { me = true; }
nThen(function (waitFor) { nThen(function (waitFor) {
var msg = me ? Messages.owner_removeMeConfirm : Messages.owner_removeConfirm; // XXX check existing keys var msg = me ? Messages.owner_removeMeConfirm : Messages.owner_removeConfirm;
UI.confirm(msg, waitFor(function (yes) { UI.confirm(msg, waitFor(function (yes) {
if (!yes) { if (!yes) {
waitFor.abort(); waitFor.abort();
@ -438,12 +435,6 @@ define([
} }
}); });
// XXX allow_removeConfirm, allow_checkbox, allow_text, allow_addConfirm
Messages.allow_addConfirm = "Are you sure?"; // XXX
Messages.allow_removeConfirm = "Are you sure?"; // XXX
Messages.allow_checkbox = "Enable allow list"; // XXX
Messages.allow_text = 'Pewpewpew'; // XXX
var remove = function (el) { var remove = function (el) {
// Check selection // Check selection
var $el = $(el); var $el = $(el);
@ -701,7 +692,7 @@ define([
} }
// Otherwise it's a stranger // Otherwise it's a stranger
_owners[ed] = { _owners[ed] = {
name: '???', // XXX unkwown? name: Messages.owner_unknownUser,
}; };
strangers++; strangers++;
}); });
@ -884,11 +875,6 @@ define([
return $d; return $d;
}; };
var drawRight = function () { var drawRight = function () {
// XXX allow_enabled, allow_disabled, allow_label
Messages.allow_enabled = 'ENABLED'; // XXX
Messages.allow_disabled = 'DISABLED'; // XXX
Messages.allow_label = 'Allow list: {0}'; // XXX
// Owners // Owners
var content = []; var content = [];
var _ownersGrid = getUserList(common, data.owners); var _ownersGrid = getUserList(common, data.owners);
@ -939,9 +925,6 @@ define([
}); });
} }
// XXX access_muteRequests
Messages.access_muteRequests = "Mute access requests for this pad"; // XXX
// Mute access requests // Mute access requests
var priv = common.getMetadataMgr().getPrivateData(); var priv = common.getMetadataMgr().getPrivateData();
var edPublic = priv.edPublic; var edPublic = priv.edPublic;
@ -1105,10 +1088,6 @@ define([
}); });
})); }));
}).nThen(function () { }).nThen(function () {
// XXX access_main, access_allow
Messages.access_main = 'ACCESS'; // XXX
Messages.access_allow = 'ALLOW'; // XXX
var tabs = UI.dialog.tabs([{ var tabs = UI.dialog.tabs([{
title: Messages.access_main, title: Messages.access_main,
icon: "fa fa-unlock-alt", icon: "fa fa-unlock-alt",

@ -164,9 +164,6 @@ define([
queue.next(); queue.next();
if (e === 'TOO_LARGE') { if (e === 'TOO_LARGE') {
$pv.text(Messages.upload_tooLargeBrief); $pv.text(Messages.upload_tooLargeBrief);
// XXX translate
// instead of "This file exceeds the maximum upload size"
// use "the maximum upload size allowed for your account"
return void UI.alert(Messages.upload_tooLarge); return void UI.alert(Messages.upload_tooLarge);
} }
if (e === 'NOT_ENOUGH_SPACE') { if (e === 'NOT_ENOUGH_SPACE') {

Loading…
Cancel
Save