nicklockwood / iVersion

[DEPRECATED]
http://www.charcoaldesign.co.uk/source/cocoa#iversion
Other
1.95k stars 292 forks source link

language #15

Closed tommytommy closed 12 years ago

tommytommy commented 12 years ago

1) 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

2) 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 12 years ago

Right on both counts - I've fixed this for 1.9.1