code: function(raw_directive) {
  
  		if (Lava.schema.DEBUG && (!raw_directive.attributes || !raw_directive.attributes['locale'] || !raw_directive.attributes['for']))
  			Lava.t("Malformed x:resources definition. 'locale' and 'for' are required");
  
  		Lava.resources.addWidgetResource(
  			raw_directive.attributes['for'],
  			raw_directive.attributes['locale'],
  			this._parseResources(raw_directive, raw_directive.attributes['for'])
  		);
  
  	}
docs: Standalone resources definition for global widget
  @param {_cRawDirective} raw_directive