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();
if (RED.settings.paletteCategories) {
RED.settings.paletteCategories.forEach(function(category){
createCategoryContainer(category, category); // TODO NLS enable categories from settings
createCategoryContainer(category, RED._("palette.label."+category,{defaultValue:category}));
});
} else {
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",
"popOverError": "Error generating pop-over label for '__type__'.",
"filter": "filter",
"core": {
"label": {
"subflows": "subflows",
"input": "input",
"output": "output",