• 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: Localizing POSIX errno messages.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localizing POSIX errno messages.


  • Subject: Re: Localizing POSIX errno messages.
  • From: Andre-John Mas <email@hidden>
  • Date: Tue, 4 Sep 2007 23:16:31 -0400


On 4-Sep-07, at 20:54 , James Farwell wrote:

Greetings,

I have a standard POSIX errno (set by fopen, or malloc, etc.), and I am
trying to turn it into a string localized for the current user. strerror()
always seems to return the English string, no matter what I have done with
setlocale(). I grepped around in the System folder and found that
/System/Library/CoreServices/CoreTypes.bundle seems to have translations for
all the POSIX error messages, but I can't find an API to get at them. Is
there a System-level way to get at the localized version of these strings, or
is it simply up to every application to define their own translations?

A quick search turns up the following:

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ Classes/NSError_Class/Reference/Reference.html

Hopefully this is what you need. I haven't used this personally so
I can't be of more help.

Andre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Localizing POSIX errno messages. (From: "James Farwell" <email@hidden>)

  • Prev by Date: Localizing POSIX errno messages.
  • Next by Date: Re: Poor performance of pthreads across cpu dies.
  • Previous by thread: Localizing POSIX errno messages.
  • Next by thread: EVFILT_SIGNAL - observe "standard" signals before they are delivered?
  • Index(es):
    • Date
    • Thread