Re: Getting Localized System Strings
Re: Getting Localized System Strings
- Subject: Re: Getting Localized System Strings
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 1 Apr 2008 14:55:16 +0200
Le 1 avr. 08 à 14:47, Gerriet M. Denkmann a écrit :
On 1 Apr 2008, at 12:25, Jean-Daniel Dupas wrote:
The strings you are looking for are in the AppKit ressources, but I
don't think there are part of the API, the keys can change at
anytime and you cannot rely on the files names. (in Leopard, the
Undo.strings file contains a "Paste Font" key, but it's not
garantee that it remain like that)
Anyway, you can probably copy this Undo.strings file in your
application.
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.
Kind regards,
Gerriet.
As I said, it works, but it's not futur-proof, so I would not use it
in a shipping product.
_______________________________________________
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