What is a "positional parameter" in the context of localizable strings?
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