International strings
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.