I am using Obj C with Cocoa framework.
The language on my Mac is English.
I am trying to get the language preference of my Mac using the following code:
It is displaying en_IN when I am running the application from console. Its fine.
Now I changed my language to simple chinese using System PReferences -> International and restarted my Mac.
Still above code is displaying en_IN only.
How to get the language code of my Mac to which it is currently set?
The language on my Mac is English.
I am trying to get the language preference of my Mac using the following code:
Code:
userLocaleRef = CFLocaleCopyCurrent();
CFShow(CFLocaleGetIdentifier(userLocaleRef));
It is displaying en_IN when I am running the application from console. Its fine.
Now I changed my language to simple chinese using System PReferences -> International and restarted my Mac.
Still above code is displaying en_IN only.
How to get the language code of my Mac to which it is currently set?