1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Handle [html] data-i18n prefixes in config node dialog

This commit is contained in:
Nick O'Leary 2015-05-13 09:51:13 +01:00
parent 6249083431
commit a4a29ceb3c

View File

@ -628,7 +628,13 @@ RED.editor = (function() {
$("#dialog-config-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);
}
});