• 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: Getting Localized System Strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Localized System Strings


  • Subject: Re: Getting Localized System Strings
  • From: "Gary L. Wade" <email@hidden>
  • Date: Tue, 01 Apr 2008 14:29:39 -0400

>
>Thanks a lot. I decided to use it like this:
>NSBundle *appBundle = [ NSBundle bundleWithIdentifier:
>@"com.apple.AppKit" ];
>NSString *localSetFont = [ appBundle localizedStringForKey: @"Set
>Font" value: nil table: @"Undo"];
>Seems to work fine.
>

That's really not a good thing to do unless Apple has documented those keys, and I don't recall reading anywhere that they have; if they haven't, you should submit a bug for them if you want them to remain where they are for the next release, and you probably should just say, "Give us some keys for common UI text and where they were, are, and will be, so we can rely on those like you have for icons."

A better solution without official documentation is to see if the strings you want are provided with AppleGlot's installation.  I remember a large number of strings like these were made available in its dictionaries.  Also, there used to be a place on Microsoft's site that had a similar set of dictionaries for your use, but I've lost track of the link.  And, depending on your favorite open source project's license, you might be able to use those.
_______________________________________________

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

  • Prev by Date: Fixing my massive memory leak with NSImage/CALayer
  • Next by Date: PDF file in NSTextAttachment
  • Previous by thread: Re: Getting Localized System Strings
  • Next by thread: test if another app has hung
  • Index(es):
    • Date
    • Thread