From 5fe2517a1c528802c0da0b9635d40eb3cfd25caa Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 5 May 2021 10:18:33 +0530 Subject: [PATCH] remove hardcoded translations from sheets --- www/common/onlyoffice/inner.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 7f8ca6297..e993aaaf5 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -51,9 +51,6 @@ define([ { var saveAs = window.saveAs; var Nacl = window.nacl; -Messages.oo_exportChrome = "Your browser cannot handle conversion to and from Microsoft Office formats. We suggest using a recent version of Firefox or Chrome."; // XXX -Messages.oo_importBin = "Click OK to import CryptPad's internal .bin format."; // XXX - var APP = window.APP = { $: $, urlArgs: Util.find(ApiConfig, ['requireConf', 'urlArgs']) @@ -76,7 +73,6 @@ Messages.oo_importBin = "Click OK to import CryptPad's internal .bin format."; / }; var supportsXLSX = function () { - //if (true) { return false; } // XXX return !(typeof(Atomics) === "undefined" || typeof (SharedArrayBuffer) === "undefined"); }; @@ -1930,7 +1926,7 @@ Messages.oo_importBin = "Click OK to import CryptPad's internal .bin format."; / if (!supportsXLSX()) { ext = ['.bin']; - warning = h('div.alert.alert-info.cp-alert-top', Messages.oo_exportChrome); + warning = h('div.alert.alert-info.cp-alert-top', Messages.oo_conversionSupport); } var types = ext.map(function (val) { @@ -2533,7 +2529,7 @@ Messages.oo_importBin = "Click OK to import CryptPad's internal .bin format."; / accept = ['.bin']; first = function (cb) { var msg = h('span', [ - Messages.oo_exportChrome, + Messages.oo_conversionSupport, ' ', h('span', Messages.oo_importBin), ]); UI.confirm(msg, function (yes) {