Thanks, it works now. You made me realize I was confusing language and locale :(

JPM

Le 22 mai 09 à 14:26, David Avendasora a écrit :


On May 22, 2009, at 4:23 AM, Jean Pierre Malrieu wrote:

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);

I'm not entirely sure, but try adding

NSNumberFormatter.setDefaultLocale(Locale.FRANCE);

Dave


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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to [email protected]


Tout ce que l'on apprend à un enfant, on l'empêche de l'inventer ou de le découvrir.
J. Piaget




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to