• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Wishing: NSLocalizedStringArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Wishing: NSLocalizedStringArray
      • From: Jerry Krinock <email@hidden>
References: 
 >Wishing: NSLocalizedStringArray (From: Jerry Krinock <email@hidden>)
 >Re: Wishing: NSLocalizedStringArray (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Wishing: NSLocalizedStringArray
  • Next by Date: Re: NSPasteboard notifications?
  • Previous by thread: Re: Wishing: NSLocalizedStringArray
  • Next by thread: Re: Wishing: NSLocalizedStringArray
  • Index(es):
    • Date
    • Thread