• 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
localizable strings file with macro
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

localizable strings file with macro


  • Subject: localizable strings file with macro
  • From: Mitchell Livingston <email@hidden>
  • Date: Mon, 3 Mar 2008 21:53:08 -0500

Hello,

I have C code that I want to generate a strings file for use on Mac. I use:

#if defined(SYS_DARWIN)
#include <CoreFoundation/CFBundle.h>
#define _(a) CFStringGetCStringPtr(CFCopyLocalizedStringFromTable( \
CFSTR( a ), CFSTR("LibraryLocalizable"), "comment" ), kCFStringEncodingMacRoman)
#else
...


Unfortunately genstrings does not seem to compile the code before attempting to create the strings file. Is there some way to generate a string file while still considering that the code will also be run on other operating systems that generate localizable strings in different ways?

Thanks,
Mitchell Livingston
_______________________________________________

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


  • Follow-Ups:
    • Re: localizable strings file with macro
      • From: "Julien Jalon" <email@hidden>
    • Re: localizable strings file with macro
      • From: Deborah Goldsmith <email@hidden>
  • Prev by Date: Re: Relaunching an application
  • Next by Date: Re: Can CoreData return only unique results of an attribute - SOLVED
  • Previous by thread: Re: General MVC and ownership question
  • Next by thread: Re: localizable strings file with macro
  • Index(es):
    • Date
    • Thread