Permalink
Browse files

Merge pull request #63 from Gerharbo/dev

Changed language to CountryCode  fixes #62
  • Loading branch information...
2 parents 8602ceb + dd082e9 commit 24ddb46b48efb6e5203474db617e6cb35f2c10ab @arashpayan committed Sep 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Appirater.m
View
@@ -364,7 +364,7 @@ + (void)rateApp {
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0) {
reviewURL = [templateReviewURLiOS6 stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%@", _appId]];
- reviewURL = [reviewURL stringByReplacingOccurrencesOfString:@"LANGUAGE" withString:[NSString stringWithFormat:@"%@", [[NSLocale preferredLanguages] objectAtIndex:0]]];
+ reviewURL = [reviewURL stringByReplacingOccurrencesOfString:@"LANGUAGE" withString:[NSString stringWithFormat:@"%@", [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode]]];
} else {
reviewURL = [templateReviewURL stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%@", _appId]];

0 comments on commit 24ddb46

Please sign in to comment.