diff --git a/editor/js/ui/tab-context.js b/editor/js/ui/tab-context.js
index 6f084ed64..aa02099b3 100644
--- a/editor/js/ui/tab-context.js
+++ b/editor/js/ui/tab-context.js
@@ -48,7 +48,7 @@ RED.sidebar.context = (function() {
});
nodeSection = sections.add({
- title: "Node",
+ title: RED._("sidebar.context.node"),
collapsible: true,
// onexpand: function() {
// updateNode(currentNode,true);
@@ -85,7 +85,7 @@ RED.sidebar.context = (function() {
// subflowSection.container.hide();
flowSection = sections.add({
- title: "Flow",
+ title: RED._("sidebar.context.flow"),
collapsible: true
});
flowSection.expand();
@@ -103,7 +103,7 @@ RED.sidebar.context = (function() {
})
globalSection = sections.add({
- title: "Global",
+ title: RED._("sidebar.context.global"),
collapsible: true
});
globalSection.expand();
@@ -187,9 +187,9 @@ RED.sidebar.context = (function() {
} else {
$(nodeSection.table).empty();
if (node) {
- $('
refresh to load |
').appendTo(nodeSection.table);
+ $(' |
').appendTo(nodeSection.table).i18n();
} else {
- $('none selected |
').appendTo(nodeSection.table);
+ $(' |
').appendTo(nodeSection.table).i18n();
}
nodeSection.timestamp.html(" ");
@@ -245,7 +245,7 @@ RED.sidebar.context = (function() {
}).appendTo(propRow.children()[1]);
}
if (l === 0) {
- $('empty |
').appendTo(container);
+ $(' |
').appendTo(container).i18n();
}
$(section.timestamp).text(new Date().toLocaleString());
});
@@ -256,7 +256,7 @@ RED.sidebar.context = (function() {
refreshEntry(section,baseUrl,id);
} else {
$(container).empty();
- $('none selected |
').appendTo(container);
+ $(' |
').appendTo(container).i18n();
}
}
diff --git a/red/api/editor/locales/en-US/editor.json b/red/api/editor/locales/en-US/editor.json
index eb33bd1a2..d0bc7bf1e 100644
--- a/red/api/editor/locales/en-US/editor.json
+++ b/red/api/editor/locales/en-US/editor.json
@@ -457,8 +457,14 @@
"filtered": "__count__ hidden"
},
"context": {
- "name":"Context",
- "label":"context"
+ "name":"Context Data",
+ "label":"context",
+ "none": "none selected",
+ "refresh": "refresh to load",
+ "empty": "empty",
+ "node": "Node",
+ "flow": "Flow",
+ "global": "Global"
},
"palette": {
"name": "Palette management",