mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #3039 from kazuhitoyokoi/dev-fixfileinlabel
Fix output label in file-in node
This commit is contained in:
commit
1a817947eb
@ -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() {
|
||||
|
@ -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": {
|
||||
|
@ -859,7 +859,9 @@
|
||||
"encoding": "文字コード",
|
||||
"deletelabel": "delete __file__",
|
||||
"utf8String": "UTF8文字列",
|
||||
"utf8String_plural": "UTF8文字列",
|
||||
"binaryBuffer": "バイナリバッファ",
|
||||
"binaryBuffer_plural": "バイナリバッファ",
|
||||
"allProps": "各メッセージに既存の全プロパティを含める"
|
||||
},
|
||||
"action": {
|
||||
|
Loading…
Reference in New Issue
Block a user