Re: Wishing: NSLocalizedStringArray
Re: Wishing: NSLocalizedStringArray
- Subject: Re: Wishing: NSLocalizedStringArray
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 21 Feb 2004 19:45:46 -0800
On Feb 21, 2004, at 7:29 PM, mmalcolm crawford wrote:
It would save me a lot of typing if we had a method like this, which
I just
dreamed up:
NSLocalizedStringArray
Returns a localized version of an array of strings.
NSArray *NSLocalizedStringArray(NSString *key, NSString *comment)
Did I miss this one somewhere?
No.
Your suggestion seems, though, somewhat opaque, and error-prone?
Bah, sorry, I should have thought about this a little longer (about 5
seconds in this case) to realise that you might be referring to
specific cases of well-known ordered sets of strings than the general
case of loading strings. For example:
NSArray *monthNames = NSLocalizedStringArray(@"months", "Array of month
names starting with January");
That might be useful, however you could do something similar now with:
NSString *monthNamesString = NSLocalizedString(@"months",
"Comma-separated list of month names starting with January");
NSArray *monthNames = [monthNamesString
componentsSeparatedByString:@","];
mmalc
_______________________________________________
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.