Permalink
Browse files

Changed language to CountryCode fixes #62

  • Loading branch information...
1 parent 8602ceb commit dd082e95e9af98c1da5ee1bd5321b4139d3866b9 @Gerharbo Gerharbo 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 dd082e9

Please sign in to comment.