Re: Localized Embedded Frameworks
Re: Localized Embedded Frameworks
- Subject: Re: Localized Embedded Frameworks
- From: Fritz Anderson <email@hidden>
- Date: Wed, 5 May 2004 14:31:52 -0500
This is the rawest of guesses, but I see that
NSLocalizedStringFromTable is documented as
Invokes localizedStringForKey:value:table: using the main bundle and
tableName.
... but your _main_ bundle probably does not contain the key you
present, so it falls back to your key. This is the behavior I'm seeing.
The framework probably has to know where its own bundle is, and use
NSLocalizedStringFromTableInBundle(). Use [NSBundle bundleForClass:
[self class]] (or whatever is convenient for referring to a
framework-defined class) for the bundle specifier.
-- F
On 5 May 2004, at 1:55 PM, Jonathan 'Wolf' Rentzsch wrote:
I'm using NSLocalizedStringFromTable() in an embedded framework. Both
the
app and framework code correctly load the English string values.
However,
when launched under French language, only the app code gets the correct
French value -- the embedded framework code still gets the English. Are
there any issues with localizing embedded frameworks?
Troubled project+source+binaries here:
<http://rentzsch.com/share/MyLocalizedApp+Framework-0.dmg> (60K)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.