Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the app language



Great, I got it working using mainBundle's pathForResource,  NSData's
dataWithContentsOfFile, and NSPropertyListSerialization's
propertyListFromData. However the comments, which I was using as headers for
sections that may contain identical keys (identical in english, but not
necessarily in other languages), are completely gone when I load it with
NSData. I suppose I'll have to work around that.

Thanks.


On 7/27/07, Douglas Davidson <email@hidden> wrote:
>
>
> There's no specific API for this; you need to use NSBundle
> language-specific resource APIs to locate the strings file, but in order to
> parse it you can just read it as a property list, so it's really not much
> code.
>
> Douglas Davidson
>
>
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Changing the app language (From: "Jeff Bland" <email@hidden>)
 >Re: Changing the app language (From: Douglas Davidson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.