Method of acquiring language setting with iPhoneSDK

Memo of method acquired by setting of language of main body in iPhoneSDK.
The array of the language setting that can be selected by "NSLocale preferredLanguages" is acquired.
The language set now is at the head of the acquired array.
// Get Language Array
NSArray *languages = [NSLocale preferredLanguages];
// get First Language
NSString *currentLanguage = [languages objectAtIndex:0];
// Acquired character strings are compared
if([currentLanguage compare:@"ja"] == NSOrderedSame) {
// japanese
} else {
// other language