• 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: Jonathon Mah <email@hidden>
  • Date: Thu, 4 Nov 2004 06:22:53 +1030

On 4 Nov 2004, at 02:15, Uli Zappe wrote:

So is there no way to bring the locale in line with the language in time?

Did you try changing the default before NSApplicationMain() was called?

No, but there I would have a hard time finding out what the used language will be. I don't want to hardcode the locale (then I could obviously simply not use localized methods in my app), but bring it in line with the language the app actually uses depending on the user's preferences and the available localized NIB files.

You could put each locale in the localized .strings file, and then set the setting to whatever NSLocalizedString() returns. That way, it'd be in English if it were using English strings, etc.


(I'm assuming that the application is set-up enough to use NSLocalizedString() before NSApplicationMain() is called — I haven't tried that yet.)


Jonathon Mah email@hidden

_______________________________________________
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>)
 >Re: Internationalization: How to bring the locale in line with the language? (From: Uli Zappe <email@hidden>)

  • Prev by Date: Sheets and hidden apps
  • Next by Date: Multiple Documents?! [newbie] [again]
  • 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