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

Re: localize framework


  • Subject: Re: localize framework
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 15 Jan 2007 12:29:08 -0800


On Jan 15, 2007, at 12:21 PM, Tore Halset wrote:

I am creating a framework and are trying to localize it. I use NSLocalizedString and have localized "Localizable.strings", but applications using the framework does not display the localized text. Strings localized in the application does work.

NSLocalizedString obtains localizations from the main bundle. You need to specify the bundle, using NSLocalizedStringFromTableInBundle or NSLocalizedStringWithDefaultValue. Obtain the framework's bundle using +bundleForClass: or +bundleWithIdentifier:.


Douglas Davidson

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: localize framework
      • From: Tore Halset <email@hidden>
References: 
 >localize framework (From: Tore Halset <email@hidden>)

  • Prev by Date: localize framework
  • Next by Date: Re: localize framework
  • Previous by thread: localize framework
  • Next by thread: Re: localize framework
  • Index(es):
    • Date
    • Thread