• 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: Using Localized Strings within a SecurityAgent Plugin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Localized Strings within a SecurityAgent Plugin


  • Subject: Re: Using Localized Strings within a SecurityAgent Plugin
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 16 Dec 2005 09:47:58 -0700


On Dec 16, 2005, at 9:31 AM, John Cebasek wrote:

I've got a plugin that uses NSLocalizedString to try and read the appropriate string from the Localized.strings file. However, where I use NSLocalizedString I only get the key I pass in, which means that NSLocalizedString isn't finding the file or the key. The Localized.strings file in in the appropriate directory (English.lproj), and the keys are correct. That means that I must be missing a step before using NSLocalizedString, however, I haven't stumbled on (or googled) anything.

Any hints on how to use NSLocalizedString within a plugin?

NSLocalizedString() only searches the main bundle. If you want to access localized strings that are stored within a framework or bundle's resources, you must instead use NSLocalizedStringFromTableInBundle().

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________
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
References: 
 >Using Localized Strings within a SecurityAgent Plugin (From: "John Cebasek" <email@hidden>)

  • Prev by Date: Re: Using Zip executable in Cocoa Application
  • Next by Date: Re: Deciphering MDSchemaCopyMetaAttributesForAttribute()
  • Previous by thread: Using Localized Strings within a SecurityAgent Plugin
  • Next by thread: Whre find safari style tabs in IB
  • Index(es):
    • Date
    • Thread