Re: Access to Localized Portions of Private Framework without having App Localized
Re: Access to Localized Portions of Private Framework without having App Localized
- Subject: Re: Access to Localized Portions of Private Framework without having App Localized
- From: Douglas Davidson <email@hidden>
- Date: Fri, 14 Dec 2007 12:13:17 -0800
On Dec 14, 2007, at 11:47 AM, Ryan Poling wrote:
Hi All,
Kind of a strange question... I have a private framework I've
created for use in some projects which contains about ten different
localizations. When I include this framework in my application, I
have found that the localized versions of the framework are NOT used
unless I also have a localized version of my application in the same
language. For example, even though the framework contains a French
localization, it is not used unless I also create a French
localization of my app.
This is less than desirable since I want to use the localized
versions from the framework whenever possible (for its dialogs), but
can't always localize the entire application.
Is there a way around this?
Yes, there is. If you want to use the default localization
mechanisms, you can add the key CFBundleAllowMixedLocalizations to
your Info.plist with the value "YES", and then each bundle will be
considered for localization individually. If you want more specific
control, you can use NSBundle or CFBundle API such as
preferredLocalizationsFromArray:forPreferences:nil to select an
appropriate localization, and then use localization-specific resource
location APIs.
Douglas Davidson
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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