• 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
International strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

International strings


  • Subject: International strings
  • From: Christian Mike <email@hidden>
  • Date: Fri, 3 Aug 2001 11:55:46 -0500

I sure wish that this list had a searchable archive. That way I wouldn't
have to clutter it with this noise. :-)

Anyway, in my application, I have some string in English or Spanish. I want
to be a good citizen if possible and use the internationalization facilities
that are available, but as in many things, the documentation is a little
scarce.

I see that I can create files like myStrings.string and place them in the
<language>.lprog folder and then look them up using some flavor of NSBundle
localizedStringForKey:value:table:.

Now I see that in the default InfoPlist.strings file, there are nice
symbolic names for the keys, but I can't find where those nice names get
defined. How can I set up symbolic names like that so that I don't have to
use long key names?

Also, from time-to-time, even though my current language is set to English,
I might want to pull one of the Spanish strings out of its file. How can I
fake the system out so that it pulls the string out of another language's
resources?

Thanks.

Michael Christian
Thomson multimedia Inc.


  • Prev by Date: Re: What is a "parse error"?
  • Next by Date: Re: creating custom views in IB
  • Previous by thread: [ANN] Vermont Recipes 4 released
  • Next by thread: Re: International strings
  • Index(es):
    • Date
    • Thread