Re: Less verbose way to localize a string with a default value?
Re: Less verbose way to localize a string with a default value?
- Subject: Re: Less verbose way to localize a string with a default value?
- From: BJ Homer <email@hidden>
- Date: Mon, 9 Nov 2009 11:14:13 -0700
You can use the -s flag to genstrings to tell it to use your own prefix
instead of "NSLocalizedString". For example, passing "-s MyString" would
catch calls to MyString(), MyStringFromTable(), MyStringWithDefaultValue(),
etc. However, these functions must take the same arguments as the default
NSLocalizedString macros, so you don't really gain much if you're just
looking to reduce verbosity without changing functionality.
More info here:
http://developer.apple.com/Mac/library/documentation/Cocoa/Conceptual/LoadingResources/Strings/Strings.html#//apple_ref/doc/uid/10000051i-CH6-SW11
-BJ
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden