Apply i18n messages to diagnostics dialog

This commit is contained in:
Nick O'Leary 2022-04-26 16:24:13 +01:00 committed by GitHub
parent edcdc6c97c
commit 0fec9c7c55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -27,14 +27,14 @@ RED.diagnostics = (function () {
readOnly: true,
jsonButtons: [
{
text: 'Copy',
text: RED._('clipboard.export.copy'),
icon: 'fa fa-copy',
click: function () {
RED.clipboard.copyText(json, $(this), "Copied to clipboard")
RED.clipboard.copyText(json, $(this), RED._('clipboard.copyMessageValue'))
}
},
{
text: 'Download',
text: RED._('clipboard.download'),
icon: 'fa fa-download',
click: function () {
var element = document.createElement('a');

View File

@ -515,7 +515,7 @@
.on("click", function (evt) {
evt.preventDefault();
if (button.click !== undefined) {
button.click(evt);
button.click.call(element, evt);
}
});
if (button.id) { element.attr("id", button.id); }