Localizing number formatters
Localizing number formatters
- Subject: Localizing number formatters
- From: Jean Pierre Malrieu <email@hidden>
- Date: Fri, 22 May 2009 10:23:19 +0200
Hi,
I am writing an application for French users, and they are used to commas as decimal separator (this is the default). I thought I could use "0.00" as the numberformatter in the textfields and call
NSNumberFormatter.setDefaultLocalizesPattern(true);
in my app constructor.
I also set the following properties:
er.extensions.ERXLocalizer.defaultLanguage=French er.extensions.ERXLocalizer.availableLanguages=(French)
But that does not work... What I am forgetting to do here?
TIA
JPM
PS: From WO java doc,
"NSNumberFormatter provides methods to localize pattern strings. You can change the currency symbol, the decimal separator, and the thousands separator manually, or you can trust NSNumberFormatter to do it for you, based on locales. If you enable localization for an instance of NSNumberFormatter, it will check the current locale and localize pattern strings appropriately for that locale. By default, instances of NSNumberFormatter are not localized. You can enable localization for all new instances of NSNumberFormatter using setDefaultLocalizesPattern or for a specific instance of NSNumberFormatter using setLocalizesPattern" |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden