Hello list; I’m working on developing a localization strategy for
our Flex application. I have successfully used the @Resource directive to set the
text attribute of mx:Label components to a localized value: <mx:Label text="@Resource( bundle='DSHB_Strings',
key='DSHB_SearchLabel' )" styleName="searchLabelStyle"/> But I have not been able to do the same with an mx:XML
component that is used as the data provider for a popup menu. The following code
results in the label attribute having the literal value “@Resource…”. <mx:XML id="myXml" xmlns=""> <menuitem
label="@Resource( bundle='DSHB_Strings', key='DSHB_NameSearchField'
)"/> </mx:XML> I’ve resorted to building the XML data provider
programmatically, but was wondering if there are any plans to support the
@Resource directive in XML components. Thanks. Tobias. Creo Inc., a subsidiary of Kodak Tobias Patton | Software Developer | Tel: +1.604.451.2700
ext: 5148 | mailto:[EMAIL PROTECTED] | http://www.creo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- [flexcoders] The @Resource compiler directive Tobias Patton
- RE: [flexcoders] The @Resource compiler directive Jason Hawryluk