From 0deaa428a5c8dd09bd54ae5abe7e64308f8bba47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Wed, 2 Dec 2020 13:28:23 +0000 Subject: [PATCH 1/2] Use existing key for empty chainpad error --- www/common/sframe-app-framework.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/common/sframe-app-framework.js b/www/common/sframe-app-framework.js index d3a4bc174..8776573d7 100644 --- a/www/common/sframe-app-framework.js +++ b/www/common/sframe-app-framework.js @@ -470,8 +470,9 @@ define([ var noCache = false; // Prevent reload loops var onCorruptedCache = function () { if (noCache) { - // XXX translation key - return UI.errorLoadingScreen("Reload loop: empty chainpad for a non-empty channel"); + UI.errorLoadingScreen(Messages.unableToDisplay, false, function () { + common.gotoURL(''); + }); } noCache = true; var sframeChan = common.getSframeChannel(); From 8173eb4a6fb93eef43cefee1758ec8557a3d1a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Wed, 2 Dec 2020 14:16:13 +0000 Subject: [PATCH 2/2] Add "offline" key --- www/common/toolbar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/toolbar.js b/www/common/toolbar.js index 925f6aba3..761ecce78 100644 --- a/www/common/toolbar.js +++ b/www/common/toolbar.js @@ -1395,7 +1395,8 @@ MessengerUI, Messages) { toolbar.isErrorState = bool; // Stop kickSpinner toolbar.title.toggleClass('cp-toolbar-unsync', bool); // "read only" next to the title if (bool && toolbar.spinner) { - toolbar.spinner.text("OFFLINE"); // XXX + Messages.offline = "OFFLINE"; // XXX + toolbar.spinner.text(Messages.offline); } else { kickSpinner(toolbar, config); }