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

NSLocalizedString() doesn't work


  • Subject: NSLocalizedString() doesn't work
  • From: Michael Becker <email@hidden>
  • Date: Mon, 22 Mar 2004 18:16:34 +0100

Hi!

Trying to localize my application, here's what I did:
- Added a new empty file to the project, named it "Localizable.strings"
- Added a localization variant to the file, so now I have the English and the German version
- Converted both versions to "Unicode (UTF-8)"

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.
I have no clue what this means :-( I've re-checked everything (according to Aaron Hillegass's "Cocoa Programming for Mac OS X" I should be fine...)

Bye,
Michael
_______________________________________________
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.


  • Follow-Ups:
    • Re: NSLocalizedString() doesn't work
      • From: Nick Zitzmann <email@hidden>
    • Re: NSLocalizedString() doesn't work
      • From: Douglas Davidson <email@hidden>
    • Re: NSLocalizedString() doesn't work
      • From: Robert Cerny <email@hidden>
  • Prev by Date: Re: memory management question
  • Next by Date: Re: NSLocalizedString() doesn't work
  • Previous by thread: ANN: dailyWakeup and ShowPMQueue
  • Next by thread: Re: NSLocalizedString() doesn't work
  • Index(es):
    • Date
    • Thread