mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Support i18n in MQTT node property
This commit is contained in:
parent
efc0f1ab91
commit
a81b1aa0cb
@ -421,7 +421,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
var typedInputNoneOpt = { value: 'none', label: '', hasValue: false };
|
var typedInputNoneOpt = {
|
||||||
|
value: 'none',
|
||||||
|
label: RED._("node-red:mqtt.label.none"),
|
||||||
|
hasValue: false
|
||||||
|
};
|
||||||
var makeTypedInputOpt = function(value){
|
var makeTypedInputOpt = function(value){
|
||||||
return {
|
return {
|
||||||
value: value,
|
value: value,
|
||||||
@ -436,7 +440,7 @@
|
|||||||
makeTypedInputOpt("text/csv"),
|
makeTypedInputOpt("text/csv"),
|
||||||
makeTypedInputOpt("text/html"),
|
makeTypedInputOpt("text/html"),
|
||||||
makeTypedInputOpt("text/plain"),
|
makeTypedInputOpt("text/plain"),
|
||||||
{value:"other", label:""}
|
{ value: "other", label: RED._("node-red:mqtt.label.other") }
|
||||||
];
|
];
|
||||||
|
|
||||||
function getDefaultContentType(value) {
|
function getDefaultContentType(value) {
|
||||||
|
@ -446,7 +446,9 @@
|
|||||||
"staticTopic": "Subscribe to single topic",
|
"staticTopic": "Subscribe to single topic",
|
||||||
"dynamicTopic": "Dynamic subscription",
|
"dynamicTopic": "Dynamic subscription",
|
||||||
"auto-connect": "Connect automatically",
|
"auto-connect": "Connect automatically",
|
||||||
"auto-mode-depreciated": "This option is depreciated. Please use the new auto-detect mode."
|
"auto-mode-depreciated": "This option is depreciated. Please use the new auto-detect mode.",
|
||||||
|
"none": "none",
|
||||||
|
"other": "other"
|
||||||
},
|
},
|
||||||
"sections-label": {
|
"sections-label": {
|
||||||
"birth-message": "Message sent on connection (birth message)",
|
"birth-message": "Message sent on connection (birth message)",
|
||||||
|
@ -446,7 +446,9 @@
|
|||||||
"staticTopic": "1つのトピックを購読",
|
"staticTopic": "1つのトピックを購読",
|
||||||
"dynamicTopic": "動的な購読",
|
"dynamicTopic": "動的な購読",
|
||||||
"auto-connect": "自動接続",
|
"auto-connect": "自動接続",
|
||||||
"auto-mode-depreciated": "本オプションは非推奨になりました。新しい自動判定モードを使用してください。"
|
"auto-mode-depreciated": "本オプションは非推奨になりました。新しい自動判定モードを使用してください。",
|
||||||
|
"none": "なし",
|
||||||
|
"other": "その他"
|
||||||
},
|
},
|
||||||
"sections-label": {
|
"sections-label": {
|
||||||
"birth-message": "接続時の送信メッセージ(Birthメッセージ)",
|
"birth-message": "接続時の送信メッセージ(Birthメッセージ)",
|
||||||
|
Loading…
Reference in New Issue
Block a user