Re: [flexcoders] date localization

2007-05-05 Thread Manish Jethani
On 5/4/07, xho [EMAIL PROTECTED] wrote:

  Anyway, I cannot find usefull informations on how to create and build a
 working italian locale for flex or download a working one: in a default flex
 installation i can only find one locale in

  [...]\Flex SDK 2\frameworks\locale\

 where the only folder en_US, contains english US locale settings.

  I duplicated this folder naming it 'it_IT' and edited
 'formatters.properties' file in order to translate short names for days and
 months. Than I changed the project compile settings adding '-locale it_IT'.
 Well, nothing changed and, in particular, DateFormatter still returns
 english formatted strings (ie 'Sun 15 Jan' vs 'Dom 15 Gen').

You have to rebuild framework_rb.swc.

  ant -f build_framework.xml -Dflex.locale=it_IT build-framework-rb

This will place a new framework_rb.swc in your locale's directory. Now
if you specify locale=it_IT to mxmlc it'll pick up values from this
new locale SWC.

Hope this helps.


[flexcoders] date localization

2007-05-04 Thread xho

hi all,

 till now trying to localize my app has been frustrating (maybe i have a
wrong approach).
 Anyway, I cannot find usefull informations on how to create and build a
working italian locale for flex or download a working one: in a default flex
installation i can only find one locale in

 [...]\Flex SDK 2\frameworks\locale\

where the only folder en_US, contains english US locale settings.

 I duplicated this folder naming it 'it_IT' and edited
'formatters.properties' file in order to translate short names for days and
months. Than I changed the project compile settings adding '-locale it_IT'.
Well, nothing changed and, in particular, DateFormatter still returns
english formatted strings (ie 'Sun 15 Jan' vs 'Dom 15 Gen').

 I am using 'formatString' property in my code: i have a date object dateObj
and

 var dateFormat:DateFormatter = new DateFormatter ( ); 
 dateFormat.formatString = EEE D MMM;/*x es. Sun 15 Jan */
 dateStr:String = dateFormat.format (dateObj);


 I imagine that simply editing formatters.properties is not enough, since
the localization folder also contains other files and compiled swc.

 I am quite new to flex and really do not know how to solve this and format
italian dates.
 Also would like to avoid regexp string substitutions as someone suggested
elsewhere.

 Thanks.
 (hope my english was good enough)

-- 
View this message in context: 
http://www.nabble.com/date-localization-tf3691384.html#a10320438
Sent from the FlexCoders mailing list archive at Nabble.com.