Localizing NSString Literals
Localizing NSString Literals
- Subject: Localizing NSString Literals
- From: Ben Lachman <email@hidden>
- Date: Thu, 8 Jun 2006 01:25:30 -0400
I have several dozen strings that are currently represented in my app
as NSString literals (ie., NSString ConstantFooString = @"foo";). I
want to localize these strings, which are used in different places
throughout my app. What is the best way to localize this type of
data? I've thought of dumping them into a plist and localizing
that. I also thought I might be able to replace each literal with a
marco along the lines of
#define ConstantFooString NSLocalizedString(@"foo", @"bar")
Any recommendations on how to go about this in a easily maintainable
and clean manner?
->Ben
--
The user's going to pick dancing pigs over security every time. —
Bruce Schneier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden