Re: Localizable.strings in frameworks?
Re: Localizable.strings in frameworks?
- Subject: Re: Localizable.strings in frameworks?
- From: Florent Pillet <email@hidden>
- Date: Tue, 26 Sep 2006 16:02:06 +0200
For these needs, I use to use a macro in my code that's defined as:
#define LOCALIZED_STRING(key) [[NSBundle bundleForClass:[self class]]
localizedStringForKey:(key) value:@"" table:nil]
(sorry if formatting splits the line).
And I always use this macro to get localized strings when writing code
in a framework. This way, you always get access to the localized strings
file of the current framework.
HTH,
Florent
email@hidden wrote:
I have an app that I am localizing. This app contains a private
framework. In the framework is a .nib file, localized for German and
English. So far so good! But what about the frameworks
localized.string file? Do I put the framework text to be localized in
the app's localized.strings file, or does the framework contain the
localized.strings file? I tried using a localized.strings file in the
frameworks, but it did not work as expected.
Any help would be appreciated!
-Bill
_______________________________________________
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
--
Florent Pillet http://www.florentpillet.com
Software consultant - Mac OS X, Palm OS, Windows Mobile
Skype callto://florent.pillet
_______________________________________________
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