diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index ab4d3658a..740ba58a8 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -583,7 +583,14 @@ RED.editor = (function() { $("#dialog-form").find('[data-i18n]').each(function() { var current = $(this).attr("data-i18n"); if (current.indexOf(":") === -1) { - $(this).attr("data-i18n",ns+":"+current); + var prefix = ""; + if (current.indexOf("[")===0) { + var parts = current.split("]"); + prefix = parts[0]+"]"; + current = parts[1]; + } + + $(this).attr("data-i18n",prefix+ns+":"+current); } }); $('').appendTo("#dialog-form"); diff --git a/nodes/core/core/20-inject.html b/nodes/core/core/20-inject.html index 6e9b22f9c..c1a1c0dcd 100644 --- a/nodes/core/core/20-inject.html +++ b/nodes/core/core/20-inject.html @@ -16,38 +16,47 @@