NSLocalizedString not working with Automator project ?
NSLocalizedString not working with Automator project ?
- Subject: NSLocalizedString not working with Automator project ?
- From: Eric Morand <email@hidden>
- Date: Thu, 22 Dec 2005 17:04:34 +0100
Hi List !
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 there something wrong here ?
Thanks,
Eric.
_______________________________________________
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