Re: localize framework
Re: localize framework
- Subject: Re: localize framework
- From: Tore Halset <email@hidden>
- Date: Mon, 15 Jan 2007 21:41:34 +0100
Den Jan 15, 2007 kl. 21:29 skrev Douglas Davidson:
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:.
Thanks a lot! It worked right away!
- Tore.
_______________________________________________
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