RE: NSLocalizedString
RE: NSLocalizedString
- Subject: RE: NSLocalizedString
- From: "Yves Peneveyre" <email@hidden>
- Date: Tue, 2 Apr 2002 19:33:29 +0200
I checked, and the file is in the right location.
And the output of the pl command is ok...
Yves Peneveyre
-----Original Message-----
From: email@hidden
[
mailto:email@hidden]On Behalf Of Douglas Davidson
Sent: mardi, 2. avril 2002 19:27
To: email@hidden
Cc: Cocoa List (E-mail)
Subject: Re: NSLocalizedString
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.
_______________________________________________
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.