Add translations keys and remove XXX

pull/1/head
David Benqué 4 years ago
parent dec8fc3f01
commit 14f3cff926

@ -56,9 +56,9 @@ define([
var showVersion = function (initial) { var showVersion = function (initial) {
var v = getVersion(); var v = getVersion();
if (initial) { if (initial) {
v = "Latest"; // XXX v = Messages.oo_version_latest;
} }
$version.text("Version: " + v); // XXX $version.text(Messages.oo_version + v);
var $pos = $hist.find('.cp-history-timeline-pos'); var $pos = $hist.find('.cp-history-timeline-pos');
var cps = sortedCp.length; var cps = sortedCp.length;

@ -661,10 +661,8 @@ define([
// or if we requested a x.0 version // or if we requested a x.0 version
var exists = !Number(s[1]) || messages.length; var exists = !Number(s[1]) || messages.length;
var vHashEl; var vHashEl;
Messages.oo_deletedVersion = "This version no longer exists in the history."; // XXX
if (!privateData.embed) { if (!privateData.embed) {
Messages.infobar_versionHash = "You're currently viewing an old version of this document ({0})."; // XXX (duplicate from history branch)
var vTime = (messages[messages.length - 1] || {}).time; var vTime = (messages[messages.length - 1] || {}).time;
var vTimeStr = vTime ? new Date(vTime).toLocaleString() var vTimeStr = vTime ? new Date(vTime).toLocaleString()
: 'v' + privateData.ooVersionHash; : 'v' + privateData.ooVersionHash;
@ -1241,7 +1239,7 @@ define([
onMigrateRdy.reg(function () { onMigrateRdy.reg(function () {
var div = h('div.cp-oo-x2tXls', [ var div = h('div.cp-oo-x2tXls', [
h('span.fa.fa-spin.fa-spinner'), h('span.fa.fa-spin.fa-spinner'),
h('span', Messages.oo_sheetMigration_loading) // XXX tell them that it will take ~ 1min) h('span', Messages.oo_sheetMigration_loading)
]); ]);
UI.openCustomModal(UI.dialog.customModal(div, {buttons: []})); UI.openCustomModal(UI.dialog.customModal(div, {buttons: []}));
makeCheckpoint(true); makeCheckpoint(true);
@ -1938,7 +1936,7 @@ define([
} }
var md = Util.clone(metadataMgr.getMetadata()); var md = Util.clone(metadataMgr.getMetadata());
var snapshots = md.snapshots = md.snapshots || {}; var snapshots = md.snapshots = md.snapshots || {};
if (snapshots[hash]) { cb('EEXISTS'); return void UI.warn(Messages.error); } // XXX if (snapshots[hash]) { cb('EEXISTS'); return void UI.warn(Messages.snapshot_error_exists); }
snapshots[hash] = { snapshots[hash] = {
title: title, title: title,
time: time time: time
@ -2097,7 +2095,7 @@ define([
content.migration = true; content.migration = true;
APP.onLocal(); APP.onLocal();
} else { } else {
msg = h('div.alert.alert-warning.cp-burn-after-reading', Messages.oo_sheetMigration_anonymousEditor); // XXX update: "anonymous users or viewers" msg = h('div.alert.alert-warning.cp-burn-after-reading', Messages.oo_sheetMigration_anonymousEditor);
$(APP.helpMenu.menu).after(msg); $(APP.helpMenu.menu).after(msg);
readOnly = true; readOnly = true;
} }

@ -148,7 +148,7 @@ define([
if (!hash) { cb('NO_HASH'); return void UI.warn(Messages.error); } if (!hash) { cb('NO_HASH'); return void UI.warn(Messages.error); }
var md = Util.clone(cpNfInner.metadataMgr.getMetadata()); var md = Util.clone(cpNfInner.metadataMgr.getMetadata());
var snapshots = md.snapshots = md.snapshots || {}; var snapshots = md.snapshots = md.snapshots || {};
if (snapshots[hash]) { cb('EEXISTS'); return void UI.warn(Messages.error); } // XXX if (snapshots[hash]) { cb('EEXISTS'); return void UI.warn(Messages.snapshot_error_exists); }
snapshots[hash] = { snapshots[hash] = {
title: title, title: title,
time: +new Date() time: +new Date()

Loading…
Cancel
Save