From 24c0572a3a2f128d9c5002d49adb1d6d62d2c697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Thu, 1 Oct 2020 10:50:38 +0100 Subject: [PATCH] Use keys for spinner messages --- www/common/toolbar.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www/common/toolbar.js b/www/common/toolbar.js index 1b3dcc17c..cf319f124 100644 --- a/www/common/toolbar.js +++ b/www/common/toolbar.js @@ -1350,11 +1350,13 @@ MessengerUI, Messages) { } }; + Messages.snaphot_title = "Snapshot"; //XXX + toolbar.setSnapshot = function (bool) { toolbar.history = bool; toolbar.title.toggleClass('cp-toolbar-unsync', bool); if (bool && toolbar.spinner) { - toolbar.spinner.text("SNAPSHOT"); // XXX + toolbar.spinner.text(Messages.snaphot_title); } else { kickSpinner(toolbar, config); } @@ -1363,7 +1365,7 @@ MessengerUI, Messages) { toolbar.history = bool; toolbar.title.toggleClass('cp-toolbar-unsync', bool); if (bool && toolbar.spinner) { - toolbar.spinner.text("HISTORY"); // XXX + toolbar.spinner.text(Messages.historyText); } else { kickSpinner(toolbar, config); }