diff --git a/js/modules/aggregator/aggregator.js b/js/modules/aggregator/aggregator.js index 3c4471534e35510f34d8a841ce2636c574e31b70..bb5b76ca5b618f97ed0553655fdcd88a25f3c52f 100644 --- a/js/modules/aggregator/aggregator.js +++ b/js/modules/aggregator/aggregator.js @@ -618,7 +618,16 @@ define(['easejs', 'MathUuid','widget', * @param {Array} _componentTypes An array of components classes that should be searched for (e.g. Widget, Interpreter and Aggregator). */ 'private getComponentsForUnsatisfiedAttributeTypes': function(_unsatisfiedAttributes, _all, _componentTypes) { - // ask the discoverer for components that satisfy the requested components + var attrs = _unsatisfiedAttributes.getItems(); + var translations = this.discoverer.getTranslations(); + + for (attribute in attrs) { + for (translation in translations) { + _unsatisfiedAttributes.put(translations[translation].getSynonym(attrs[attribute])); + } + } + + // ask the discoverer for components that satisfy the requested components var relevantComponents = this.discoverer.getComponentsByAttributes(_unsatisfiedAttributes, _all, _componentTypes); console.log("I found "+relevantComponents.length+" component(s) of type "+_componentTypes+" that might satisfy the requested attributes.");