Skip to content

Commit

Permalink
Merge pull request #26 from jjochen/master
Browse files Browse the repository at this point in the history
NSLocale's preferredLanguages instead of currentLocale
  • Loading branch information
samvermette committed May 7, 2013
2 parents 4a67a7f + 4faa05c commit 0b0f6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SVGeocoder/SVGeocoder.m
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ - (SVGeocoder*)initWithParameters:(NSMutableDictionary*)parameters completion:(S
[self.operationRequest setTimeoutInterval:kSVGeocoderTimeoutInterval];

[parameters setValue:@"true" forKey:@"sensor"];
[parameters setValue:[[NSLocale currentLocale] objectForKey:NSLocaleLanguageCode] forKey:@"language"];
[parameters setValue:[NSLocale preferredLanguages][0] forKey:@"language"];
[self addParametersToRequest:parameters];

self.state = SVGeocoderStateReady;
Expand Down

0 comments on commit 0b0f6b1

Please sign in to comment.