• 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
Re: Changing the app language
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the app language


  • Subject: Re: Changing the app language
  • From: "Jeff Bland" <email@hidden>
  • Date: Fri, 27 Jul 2007 14:27:40 -0600

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Changing the app language
      • From: Brian Willoughby <email@hidden>
References: 
 >Changing the app language (From: "Jeff Bland" <email@hidden>)
 >Re: Changing the app language (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Problems running a shell script as root
  • Next by Date: Re: Absolute path to the Application
  • Previous by thread: Re: Changing the app language
  • Next by thread: Re: Changing the app language
  • Index(es):
    • Date
    • Thread