Re: Using Localized Strings within a SecurityAgent Plugin
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