Re: NSLocalizedString not working with Automator project ?
Re: NSLocalizedString not working with Automator project ?
- Subject: Re: NSLocalizedString not working with Automator project ?
- From: Ricky Sharp <email@hidden>
- Date: Thu, 22 Dec 2005 10:18:45 -0600
On Dec 22, 2005, at 10:04 AM, Eric Morand wrote:
For some reason, I'm unable to use NSLocalizedString (or the
equivalent method of NSBundle) in my Cocoa Automator Action project.
My syntax is pretty simple :
- (void)logError
{
NSString * errorMessage = NSLocalizedString(@"UserAccessDenied",
@"This is the error message sent when the host has denied access
because of wrong username/password");
NSLog (@"ErrorMessage = %@", errorMessage);
}
The NSLog function always print UserAccessDenied...
I obviously have a Localizable.strings file whose content is :
"UserAccessDenied" = "Please WORK !!!";
This file is a UTF-16 file (as adviced by Apple), it is located in
the Ressources folder of my compiled Automator Action and I've
tested it with /usr/bin/plutil to be sure it was 100% valid - and
it is !
Is your .strings file directly inside of Resources/, or does it live
in Resources/<locale>.lproj/?
I've only placed such files into a specific locale subfolder. Can't
say if they work when directly inside of Resources.
___________________________________________________________
Ricky A. Sharp
mailto:email@hidden
Instant Interactive(tm)
http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden