This content has been marked as final. Show 4 replies
You can affect the default decimal separator by changing the decimal separator properties in this file:
C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\frameworks\locale\en_US\SharedResources.properties
Of course this will make the change in all areas of all your Flex apps, and you will need to rebuild the framework_rb.swc file. This is for FB2.0.1, so may be different for FB3.
You can also put a SharedResourcs in your own locale directory for example
I currently drilled it down to the following files:
// this is used for dates
// this is used for numbers and stuff
But depending on how you compile your swf you need to tell the compiler to included these files. This way you can make your project specific for a locale (or number of locales).
Thats mean, that i should use method "format" of different formaters, such as NumberFormatter, CurrencyFormatter and others. Can i just change somewhere decimal separator, may be add some arguments to a compiler and get comma instead of dot without manually formating values?
Greg, in your explanation, I could change just a defult value for separators, when i call the corresponding methods
you can also set the decimal separator directly on the formatter if you like.
However this is just much more work for programs that need to function in several locales. Eater way works ofcourse...