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

Try to use default palette label nls message if found

This commit is contained in:
Nick O'Leary 2015-06-17 16:00:52 +01:00
parent fe9dc6b272
commit 757caeb9a4
2 changed files with 3 additions and 3 deletions

View File

@ -269,11 +269,11 @@ RED.palette = (function() {
$(".palette-spinner").show(); $(".palette-spinner").show();
if (RED.settings.paletteCategories) { if (RED.settings.paletteCategories) {
RED.settings.paletteCategories.forEach(function(category){ RED.settings.paletteCategories.forEach(function(category){
createCategoryContainer(category, category); // TODO NLS enable categories from settings createCategoryContainer(category, RED._("palette.label."+category,{defaultValue:category}));
}); });
} else { } else {
core.forEach(function(category){ core.forEach(function(category){
createCategoryContainer(category, RED._("palette.core."+category)); createCategoryContainer(category, RED._("palette.label."+category,{defaultValue:category}));
}); });
} }

View File

@ -127,7 +127,7 @@
"noInfo": "no information available", "noInfo": "no information available",
"popOverError": "Error generating pop-over label for '__type__'.", "popOverError": "Error generating pop-over label for '__type__'.",
"filter": "filter", "filter": "filter",
"core": { "label": {
"subflows": "subflows", "subflows": "subflows",
"input": "input", "input": "input",
"output": "output", "output": "output",