• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Localizing number formatters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Localizing number formatters
      • From: David Avendasora <email@hidden>
  • Prev by Date: Re: SerializerFactory and Leopard 10.5 (eclipse and xcode)
  • Next by Date: Re: Security control
  • Previous by thread: Re: SerializerFactory and Leopard 10.5 (eclipse and xcode)
  • Next by thread: Re: Localizing number formatters
  • Index(es):
    • Date
    • Thread