NLS enable the Inject node

This commit is contained in:
Nick O'Leary
2015-05-07 14:06:55 +01:00
parent a7900940da
commit aa18c65fa8
3 changed files with 110 additions and 48 deletions

View File

@@ -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);
}
});
$('<input type="text" style="display: none;" />').appendTo("#dialog-form");