• 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
Re: Internationalization: How to bring the locale in line with the language?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internationalization: How to bring the locale in line with the language?


  • Subject: Re: Internationalization: How to bring the locale in line with the language?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Fri, 5 Nov 2004 00:58:02 +0100

At 10:44 Uhr +0100 03.11.2004, Uli Zappe wrote:
I tried [userDefaults setObject:@"en" forKey:@"AppleLocale"] in the +initialize class method of my app delegate which as far as I know is about the earliest moment you can do something when your app is launching, but apart from the ugly side-effect of having this value written to the preferences plist file, even at this time it's obviously too late: all the formatter objects in IB still use the German locale. Only after a restart of the app (which now reads the respective entry in the preferences plist) the setting takes effect.

Have you tried using an NSDateFormatter? That (or any old ANSI C call to printf(), and any call to NSString stringWithFormat:) should let you specify a format string to be used for displaying a number, which includes changing the thousands separators etc.


So, just make that an option that your users can set in your app's Preferences. I'm sure I'd personally prefer to decide myself whether I want lists of numbers in German or English in my apps, even if the GUI is English.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Internationalization: How to bring the locale in line with the language?
      • From: Uli Zappe <email@hidden>
References: 
 >Internationalization: How to bring the locale in line with the language? (From: Uli Zappe <email@hidden>)

  • Prev by Date: Re: Interface Creation
  • Next by Date: Re: Multiple Documents?! [newbie]
  • Previous by thread: Re: Internationalization: How to bring the locale in line with the language?
  • Next by thread: Re: Internationalization: How to bring the locale in line with the language?
  • Index(es):
    • Date
    • Thread