No compilation error, yes I have run copylocale command to generate the
resources, it runs successfully, but in case when when i run the application
and set its locale chain property to ar_SA from a combo, it doesnt read from
the resource bundle in the following piece of code,
<mx:DataGrid id="dgEnglish" dataProvider="{xmlMarketStats}"
dropShadowEnabled="false" shadowDistance="0" width="100%"
verticalGridLines="false"
headerStyleName="mydataGridHeaderStyle"
rowCount="{dgRowCount}" >
<mx:columns>
<mx:DataGridColumn
headerText="@Resource(key='Index',bundle='MarketIndexSummaryFeature')"
dataField="IndexID" textAlign="left" fontWeight="bold"/>
<mx:DataGridColumn
headerText="@Resource(key='IndexName',bundle='MarketIndexSummaryFeature')"
dataField="IndexName" textAlign="left"/>
<mx:DataGridColumn
headerText="@Resource(key='Value',bundle='MarketIndexSummaryFeature')"
dataField="Value" labelFunction="FormatValue" textAlign="right" />
<mx:DataGridColumn
headerText="@Resource(key='NetChange',bundle='MarketIndexSummaryFeature')"
dataField="NetChange" labelFunction="FormatNetChange" textAlign="right" />
<mx:DataGridColumn
headerText="@Resource(key='PercentChange',bundle='MarketIndexSummaryFeature')"
dataField="PercentChange" labelFunction="FormatPercentChange"
textAlign="right" />
</mx:columns>
</mx:DataGrid>
MarketIndexSummaryFeature.properties file is present in each folder i.e.
local\en_US and locale\ar_SA in this library project. Actually this was working
fine when i had built this project as a module, for some requirements i have to
shift to library, i havent changed any thing except migrating it to library
project only. As u can see in the above datagrid columns, i am picking up
column headers from the resources, in en_US case, it picks it, and in ar_SA it
doesn't and shows the dataField name as headerText., let me know if I can
provide further clarification....
looking forward.
regards,
- Javed
Gordon Smith <[EMAIL PROTECTED]> wrote:
Are you getting a compilation error or a runtime error? What
exactly does it say?
Did you use the copylocale script to create ar_SA framework resources?
Gordon Smith
Adobe Flex SDK Team
---------------------------------
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
M.Javed
Sent: Monday, February 18, 2008 11:57 PM
To: [email protected]
Subject: [flexcoders] Localized library
Hi,
First of all thanks for the replies on CSS post which were really helpful.
Iam currently developing a library which i want to be localized and based on
the localChain property of main application it should display the localized
string accordingly. The problem is that it works fine in case of default
language i.e. en_US but when i run the application in other locale i.e. ar_SA,
it doesnt even find the resource bundle and gets null for that. kinda wiered
problem, can anyone plz help?
regards,
- Javed
---------------------------------
Never miss a thing. Make Yahoo your homepage.
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.