I develop an application for MacOSX.
Therefore I want to change indication contents by the language locale (English, Spanish, etc.) of the application user,
How to get information which language use ?
I'm happy , If you give me some example codes
I develop an application for MacOSX.
Therefore I want to change indication contents by the language locale (English, Spanish, etc.) of the application user,
How to get information which language use ?
I'm happy , If you give me some example codes
You can use the NSLocale API to get that information, but it isn't necessary to do what you want to do. OS X has support for localization built into the OS — all you need to do is supply the appropriate language files and the user can select which language he wants.
You're looking to "localize" your application. To get started, check out the Apple docs here: Internationalization - Apple Developer Docs. Without knowing more about your specific application, it'd be hard to suggest anything more here!
NSLog(@"localeIdentifier: %@", [[NSLocale currentLocale] localeIdentifier]);