PDA

View Full Version : locale language???


marcusjubei
11-07-2008, 10:10 AM
Hi, i try to understand localization in flex. I have used utility copylocale.exe in C:\Programs\Adobe\Flex Builder 3\sdks\3.0.0\bin, with a folder for italian language:
copylocale en_US it_IT

After i go to folder:
C:\Programs\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\locale\it_IT
i open the file framework_rb.swc in folder locale/it_IT, i change formatters.properties:
.....
# DateBase
am=AM
pm=PM
dayNamesShort=Dom,Lun,Mar,Mer,Gio,Ven,Sab
# appended with monthSymbol in SharedResources
monthNamesShort=Gen,Feb,Mar,Apr,Mag,Giu,Lug,Ago,Se t,Ott,Nov,Dic

after i change air-config.xml and flex-config.xml in C:\Programs\Adobe\Flex Builder 3\sdks\3.0.0\frameworks adding the rows:
<locale-element>it_IT</locale-element>

after i change compiler option of my project in Flex Compiler:
-locale it_IT

i create a Air application, that use a sqlite db, load data from a table with a record with date "1977-22-10" in a dataGrid but in my application i see evry english format:
Sat Oct 22....

why? where i mistake?
:confused:

thanks
Marcus