• 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: Less verbose way to localize a string with a default value?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Less verbose way to localize a string with a default value? (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: beginner question, NSNumber, NSDecimalAsNumber
  • Next by Date: Core Data Disable Undo
  • Previous by thread: Less verbose way to localize a string with a default value?
  • Next by thread: Cocoa Sounds
  • Index(es):
    • Date
    • Thread