• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Localized Embedded Frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Localized Embedded Frameworks (From: "Jonathan 'Wolf' Rentzsch" <email@hidden>)

  • Prev by Date: How can I change NSMenuItem font colors?
  • Next by Date: Re: NSApplicationMain const warning
  • Previous by thread: Re: Localized Embedded Frameworks
  • Next by thread: Re: Localized Embedded Frameworks
  • Index(es):
    • Date
    • Thread