Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed language to CountryCode fixes #62

  • Loading branch information...
commit dd082e95e9af98c1da5ee1bd5321b4139d3866b9 1 parent 8602ceb
@Gerharbo Gerharbo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Appirater.m
View
2  Appirater.m
@@ -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]];
Please sign in to comment.
Something went wrong with that request. Please try again.