• 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: NSLocalizedString() doesn't work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLocalizedString() doesn't work


  • Subject: Re: NSLocalizedString() doesn't work
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 22 Mar 2004 10:26:25 -0800

On Mar 22, 2004, at 9:16 AM, Michael Becker wrote:

Now using NSLocalizedString(@"Key", nil), I get this error:

004-03-22 18:11:54.804 PhotoClient[2038] CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the data is not proper UTF-8. The file name for this data could be:
/Users/michaelbecker/Business/iplabs/PhotoClient/build/ PhotoClient.app/Contents/Resources/Localizable.strings
The parser will retry as in 10.2, but the problem should be corrected in the plist.

My Localization.strings is no plist. I never knew it was supposed to be one... So right now I am a little lost.

The standard .strings file format is a special case of the general property list formats, and it goes through the standard property list reading code, so in fact you could use any of the property list formats for .strings files. The standard .strings file format is just the one that is usually most convenient for .strings files. If you are using it, then you should use UTF-16 for the encoding rather than UTF-8. If you were using the XML property list format instead, then you would want to use UTF-8.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >NSLocalizedString() doesn't work (From: Michael Becker <email@hidden>)

  • Prev by Date: Re: Accessing default NSTextView contextual menu
  • Next by Date: Re: NSLocalizedString() doesn't work
  • Previous by thread: Re: NSLocalizedString() doesn't work
  • Next by thread: Re: NSLocalizedString() doesn't work
  • Index(es):
    • Date
    • Thread