views:

149

answers:

0

Hi there I have implemented my own ResourceManager for localizing my application by using

<mx:Label text="{resourceManager.getString('myResources','Spot')}" />

instead of

<mx:Label text="Spot" />

Now I want to be able to use this in dataFields in a data grid which use a xml file as datasource

<mx:DataGrid width="100%" height="100%" dataProvider="{xmlFile.item}">
  <mx:columns>
    <mx:DataGridColumn headerText="strings" dataField="string" />
    <mx:DataGridColumn headerText="values" dataField="value" />
  </mx:columns>
</mx:DataGrid>

Does someone know a possibility to achieve this? I know exactly which words come with this xmlFile so I can implement translations for every word manually, so this is no problem. I just want somethin like

<mx:DataGridColumn headerText="strings" dataField="{resourceManager.getString('myResources',string)}" />