• 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: Localized questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localized questions


  • Subject: Re: Localized questions
  • From: Markus Hitter <email@hidden>
  • Date: Sat, 26 Jan 2002 13:24:03 +0100

Am Samstag den, 26. Januar 2002, um 03:37, schrieb K.K.Chan:

Hello,

After my program have been tested in Europe and other places, I realize what a different world is out there. Here is my questions,

1) How do I display right time & date format with right separator, set in the System Preference ? For example in dd/mm/yy or yy-mm-dd.

Add a localized Interface. Should work without change. Perhaps, your App loads the wrong language. Use

NSLog(@"User Defaults (NSLanguageDomainName): %@",
[[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] objectForKey:@"NSLanguageDomainName"]);

to check.

If you want special formatting, you even can add a formatter in your interface to always get the localized variant.


2) Is it possible to retrieve separator character (decimal or thousand) or currency symbol under Cocoa?

should be answered above. As a last resort, you could dig manually into User Defaults.

3) What is the best approach in localizing Cocoa program ?

Use localized interfaces ("NIB files"). How to add, see Project Builder help. For the few occasions you need a string outside an interface, there's the localized strings mechanism. Vermont Recipes handles them.


Hope that helps,

Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/


  • Follow-Ups:
    • Re: Localized questions
      • From: Carlos Weber <email@hidden>
References: 
 >Localized questions (From: "K.K.Chan" <email@hidden>)

  • Prev by Date: Re: Calling you...
  • Next by Date: Drawing 2D / NSQuickDrawView
  • Previous by thread: Localized questions
  • Next by thread: Re: Localized questions
  • Index(es):
    • Date
    • Thread