Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
6 NSLocale *l = 7 [NSLocale autoupdatingCurrentLocale]; 8 NSString *language = 9 [l objectForKey: NSLocaleIdentifier]; 10 NSString *humanReadableLanguage = 11 [l displayNameForKey: NSLocaleIdentifier 12 value: language]; |
If your program interacts with the user directly in any way, you will probably want to localize it at some point. Objective-C provides a lot of rich facilities for doing this.