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.