• 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
What is a "positional parameter" in the context of localizable strings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What is a "positional parameter" in the context of localizable strings?


  • Subject: What is a "positional parameter" in the context of localizable strings?
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 8 Jul 2005 15:59:51 -0600

I searched for "positional parameter" on ADC and only got return links for AppleScript documentation, but I'm not using AppleScript here.

I ran genstrings on one of my Cocoa projects for the first time since Panther, and when I looked at the differences between Tiger's genstrings and Panther's, I noticed that Tiger's genstrings had inserted some weird characters (like "%1$@") in the places of the %@, %d, etc. insertion points in localized strings that are passed to + [NSString stringWithFormat:].

I made them go away by using the "-noPositionalParameters" option that is apparently new to genstrings, but all that the manual says it does is it "turns off positional parameter support" with no elaboration on the meaning of this support. What does this mean? And why does genstrings scramble those insertion markers in the localized strings when that option is not used?

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: What is a "positional parameter" in the context of localizable strings?
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: help! I lost my menu bar
  • Next by Date: Re: help! I lost my menu bar
  • Previous by thread: Re: Str255 to NSString and Back
  • Next by thread: Re: What is a "positional parameter" in the context of localizable strings?
  • Index(es):
    • Date
    • Thread