Re: NSLocalizedString
Re: NSLocalizedString
- Subject: Re: NSLocalizedString
- From: Douglas Davidson <email@hidden>
- Date: Tue, 2 Apr 2002 09:27:19 -0800
On Tuesday, April 2, 2002, at 09:09 AM, Yves Peneveyre wrote:
I have a problem with the NSLocalizedStringFromTable function.
In my project, I have 2 files for localized strings. The first one is
"Localizable.strings",
the second is "keynames.strings".
I try to get localized strings from the "keynames.strings" table like
that :
NSString *result = NSLocalizedStringFromTable(@"key_f5", @"keynames",
@"key_f5");
In the keynames.strings file I have :
key_f5 = "F5";
What I receive is just "key_f5" instead of the right value ("F5").
Make sure that your keynames.strings file is being copied into the
correct location in your application's bundle, probably
Contents/Resources/English.lproj. Make sure that it is well-formed; you
can use /usr/bin/pl < keynames.strings to test this.
Douglas Davidson
_______________________________________________
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.