• 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 fails rarely?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSLocalizedString fails rarely?


  • Subject: NSLocalizedString fails rarely?
  • From: Daniel Jalkut <email@hidden>
  • Date: Sat, 13 Dec 2003 16:55:06 -0800

I have a problem which I assume is caused by NSLocalizedString failing very rarely (only on a few users' systems!).

My product is an NSStatusBar item that displays a menu of scripts. The menu is generated at launch time and regenerated periodically if the contents of the "script folders" changes.

The symptom some users are seeing is that the menu items for things like the "Quit" item are showing up as "QUIT_ITEM", etc. These correspond to the clunky names I gave the "keys" to all my localized strings. Basically, instead of the localized (in this case, English) string, the user is getting the key. I think this is the fallback behavior when NSLocalizedString fails to locate and/or load the localized string for the key.

This is so rare that I've never witnessed it on my own machine. I've had 3 separate users report the same behavior, and none of them seems to be running anything super unusual. One of the users noticed the bug coincident with upgrading to Panther, but others were seeing it before, with Jaguar.

The bug seems to basically "stick" once it starts happening, but occasianally "gets better" briefly before coming back.

Does this ring any bells for anybody? Aside from being a background-only application, I think I have everything packaged pretty typically. I don't know what I could be doing to provoke this kind of failure. My only workaround option right now is to rename all my keys so they match the english value. This would basically make the bug "invisible." I'm not very comfortable with that, and it wouldn't help too much for other localized languages.

Any suggestions greatly appreciated!
Daniel
_______________________________________________
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 fails rarely?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: NSBrowser Drag Source
  • Next by Date: Odd memory issue -- not a newbie
  • Previous by thread: Re: NSBrowser Drag Source
  • Next by thread: Re: NSLocalizedString fails rarely?
  • Index(es):
    • Date
    • Thread