From ddb3738574d2fc8a5bcd29bf2ae5d1b687b0e903 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 21 Jan 2020 17:47:13 +0100 Subject: [PATCH] Add translation keys --- www/common/onlyoffice/inner.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 076c3a9c8..173cd4970 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -283,9 +283,11 @@ define([ UI.log(Messages.saved); APP.realtime.onSettle(function () { if (APP.migrate) { - UI.alert("RELOAD", function () { // XXX + UI.removeModals(); + UI.alert(Messages.oo_sheetMigration_complete, function () { common.gotoURL(); }); + return; } if (ev.callback) { return void ev.callback(); @@ -534,6 +536,11 @@ define([ data: {"type":"open","status":"ok","data":{"Editor.bin":obj.openCmd.url}} }); if (APP.migrate && !readOnly) { + var div = h('div.cp-oo-x2tXls', [ + h('span.fa.fa-spin.fa-spinner'), + h('span', Messages.oo_sheetMigration_loading) + ]); + UI.openCustomModal(UI.dialog.customModal(div, {buttons: []})); setTimeout(function () { makeCheckpoint(true); }, 1000); @@ -1430,8 +1437,8 @@ define([ content.migration = true; APP.onLocal(); } else { - var msg = h('div.alert.alert-warning.cp-burn-after-reading', "PEZPEZPEZ"); // XXX - $(APP.helpMenu).after(h); + var msg = h('div.alert.alert-warning.cp-burn-after-reading', Messages.oo_sheetMigration_anonymousEditor); + $(APP.helpMenu.menu).after(msg); readOnly = true; } } @@ -1500,7 +1507,7 @@ define([ } if (wasMigrating && !content.migration && !reloadPopup) { reloadPopup = true; - UI.alert("RELOAD pewpew", function () { // XXX + UI.alert(Messages.oo_sheetMigration_complete, function () { common.gotoURL(); }); }