• 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 NSString Literals
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Localizing NSString Literals


  • Subject: Localizing NSString Literals
  • From: Ben Lachman <email@hidden>
  • Date: Thu, 8 Jun 2006 01:25:30 -0400

I have several dozen strings that are currently represented in my app as NSString literals (ie., NSString ConstantFooString = @"foo";). I want to localize these strings, which are used in different places throughout my app. What is the best way to localize this type of data? I've thought of dumping them into a plist and localizing that. I also thought I might be able to replace each literal with a marco along the lines of

#define ConstantFooString NSLocalizedString(@"foo", @"bar")

Any recommendations on how to go about this in a easily maintainable and clean manner?

->Ben
--
The user's going to pick dancing pigs over security every time. — Bruce Schneier


_______________________________________________
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: Localizing NSString Literals
      • From: Julio Cesar Silva dos Santos <email@hidden>
  • Prev by Date: Re: Catching global keystrokes from cocoa
  • Next by Date: Re: Help in Getting NSFontFamilyClass
  • Previous by thread: Re: Help in Getting NSFontFamilyClass
  • Next by thread: Re: Localizing NSString Literals
  • Index(es):
    • Date
    • Thread