localized strings from another bundle?
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.