• 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 not working with Automator project ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSLocalizedString not working with Automator project ?
      • From: Ricky Sharp <email@hidden>
    • Re: NSLocalizedString not working with Automator project ? [Solved]
      • From: Eric Morand <email@hidden>
  • Prev by Date: Re: Overwriting NSTableHeaderCell to get context menus
  • Next by Date: Re: NSLocalizedString not working with Automator project ? [Solved]
  • Previous by thread: Re: Add a custom icon to my saved files
  • Next by thread: Re: NSLocalizedString not working with Automator project ? [Solved]
  • Index(es):
    • Date
    • Thread