NSLocalizedString
NSLocalizedString
- Subject: NSLocalizedString
- From: "Yves Peneveyre" <email@hidden>
- Date: Tue, 2 Apr 2002 19:09:27 +0200
Hello to all the list,
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").
I tried some other variant of the line of code such replacing @"keynames" by
@"keynames.strings"
or whatever, but I can not get the "F5" string.
I also tried to change the format of the "keynames.strings" to UTF-8, UTF-16
and some
other format without success.
Finally, I tried another way and I used the following line :
NSString *result = [[NSBundle mainBundle] localizedStringForKey: @"key_f5"
value: nil table: @"keynames"]];
But, I got the same result.
Is there a bug or something I missed ?
Can somebody help me ?
Has anyone had the same problem ?
I thank you very much in advance.
Best Regards
Yves Peneveyre
----------------------------------------------------------------
Yves Peneveyre direct line : ++41 21 802 5754
Software Engineer fax : ++41 21 802 5751
LooKware development Ltd phone : ++41 21 802 5750
6B, ch du Trisi email: email@hidden
CH - 1028 Priverenges web:
http://www.lookware.ch
----------------------------------------------------------------
_______________________________________________
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.