Merge pull request #3039 from kazuhitoyokoi/dev-fixfileinlabel

Fix output label in file-in node
This commit is contained in:
Nick O'Leary 2021-06-29 10:27:40 +01:00 committed by GitHub
commit 1a817947eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 2 deletions

View File

@ -276,8 +276,17 @@
inputs:1,
outputs:1,
outputLabels: function(i) {
var l = this._(((this.format === "utf8")||(this.format === "lines")) ? "file.label.utf8String" : "file.label.binaryBuffer");
return ( l + (((this.format === "lines")||(this.format === "stream")) ? "s" : "") );
var l;
if (this.format === "utf8") {
l = "file.label.utf8String";
} else if (this.format === "lines") {
l = "file.label.utf8String_plural";
} else if (this.format === "stream") {
l = "file.label.binaryBuffer_plural";
} else {
l = "file.label.binaryBuffer";
}
return this._(l);
},
icon: "file-in.svg",
label: function() {

View File

@ -861,7 +861,9 @@
"encoding": "Encoding",
"deletelabel": "delete __file__",
"utf8String": "UTF8 string",
"utf8String_plural": "UTF8 strings",
"binaryBuffer": "binary buffer",
"binaryBuffer_plural": "binary buffers",
"allProps": "include all existing properties in each msg"
},
"action": {

View File

@ -859,7 +859,9 @@
"encoding": "文字コード",
"deletelabel": "delete __file__",
"utf8String": "UTF8文字列",
"utf8String_plural": "UTF8文字列",
"binaryBuffer": "バイナリバッファ",
"binaryBuffer_plural": "バイナリバッファ",
"allProps": "各メッセージに既存の全プロパティを含める"
},
"action": {