Use keys for spinner messages

pull/1/head
David Benqué 2020-10-01 10:50:38 +01:00
parent 65af20d7cc
commit 24c0572a3a
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}