• 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: Can Xcode preprocess InfoPlist.strings files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can Xcode preprocess InfoPlist.strings files?


  • Subject: Re: Can Xcode preprocess InfoPlist.strings files?
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 13 Apr 2006 16:16:59 -0700


On Apr 13, 2006, at 1:20 PM, Ondra Cada wrote:

Isaac, Scott,

On 13.4.2006, at 21:52, Scott Tooker wrote:

Currently Xcode doesn't preprocess InfoPlist.strings file (a known issue).

I've never tried myself, but I believe one could pretty easily add a script build phase which would preprocess the Info.plist any way one wants to, and put the result into ${BUILT_PRODUCTS_DIR} (overwriting thus the standard Info), or am I overlooking something important here?

Yes, the point is that Info-plist.strings files are different from Info.plist files, so all the preprocessing and build expansions that work on plist files themselves don't work on the strings files that Cocoa uses to pull localized values.  The main differences:

1) Strings files are distributed in lproj folders; there may be more than one of them in a project.
2) In many cases, language-specific strings files are added after the fact.  Variable substitution requires all language localizations to be added at build time, which is not how a lot of shops (including Apple's) operate.
3) Strings files are UTF-16, and the vast majority of text processors (such as the C preprocessor) only work on 8-bit (ASCII, UTF-8, and MacRoman) formats.

So while we see the value of substitution in strings files, it's not currently implemented, and not easy to implement with known methods.

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Can Xcode preprocess InfoPlist.strings files? (From: "Isaac Wankerl" <email@hidden>)
 >Re: Can Xcode preprocess InfoPlist.strings files? (From: Scott Tooker <email@hidden>)
 >Re: Can Xcode preprocess InfoPlist.strings files? (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Predictive Compilation
  • Next by Date: Re: Link errors
  • Previous by thread: Re: Can Xcode preprocess InfoPlist.strings files?
  • Next by thread: Predictive Compilation
  • Index(es):
    • Date
    • Thread