language
Closed this issue · 1 comments
tommytommy commented
- suggest to use localeIdentifier as language to match the parameter format in itunes search API
//get language and country
//self.appStoreLanguage = [[NSLocale preferredLanguages] objectAtIndex:0];
self.appStoreLanguage = [[NSLocale currentLocale] localeIdentifier];
NSLog(@"language1:%@", [[NSLocale preferredLanguages] objectAtIndex:0]);
NSLog(@"language2:%@", [[NSLocale currentLocale] localeIdentifier]);
SAMPLE:
iVersion[744:707] language1:zh-Hans
iVersion[744:707] language2:zh_CN
- The return result from itunes search API may contain special characters, so make replacement and UTF8 conversion before show in alert would be better
SAMPLE:
-\U201c本地报纸\U201d更名为\U201c离线报纸\U201d
nicklockwood commented
Right on both counts - I've fixed this for 1.9.1