objective c - How to get system language in ISO 639-2 format of MAC OS using cocoa? -


I want to retrieve the system language of the Macintosh in the ISO 639-2 format (i.e., in three letter formats).

Currently, I am trying to use the [NSUserdefault objectforkey: @ "Applelanguages"] . It gives the character of the language in 2 character format.

Any API that I use must support MacOS X versions beyond 10.3.9.

are the related sections of the document, and unfortunately I do not think there is a standard API that is 639 Changed from -1 to 639-2. As explained, OS X uses a mixture of both, and the canonical form used by the OS can be obtained by CFLocaleCreateCanonicalLanguageIdentifierFromString . But this is not what you want, unfortunately.

I would suggest you process yourself in an NSDictionary on the table.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -