• 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
localized strings from another bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

localized strings from another bundle?


  • Subject: localized strings from another bundle?
  • From: Alex Rice <email@hidden>
  • Date: Wed, 22 Jan 2003 22:46:49 -0700

I have a Foundation tool that's running from My.app/Contents/Resources. In the tool I am trying

// in .../My.app/Contents/Resources
NSString *path = [[[[NSBundle mainBundle] bundlePath]
stringByDeletingLastPathComponent] stringByDeletingLastPathComponent];
// now path = .../My.app
NSBundle *bundle = [NSBundle bundleWithPath: path];
NSLog([bundle localizedStringForKey: @"verify localized strings" value: nil table: nil]);

I was expecting this code to deal with Localizable.strings correctly, but it does not. The localization is setup correctly because My.app is OK with
NSLocalizedString(@"verify localized strings", nil);

Any ideas? Thanks,

Alex Rice <email@hidden> | Mindlube Software | http://mindlube.com

what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
_______________________________________________
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.

  • Follow-Ups:
    • Re: localized strings from another bundle?
      • From: Vince DeMarco <email@hidden>
  • Prev by Date: Enabling the "Paste" menu item
  • Next by Date: deform a window
  • Previous by thread: Enabling the "Paste" menu item
  • Next by thread: Re: localized strings from another bundle?
  • Index(es):
    • Date
    • Thread