updated comment
This commit is contained in:
parent
86819283c0
commit
63abf3d35e
@ -19,7 +19,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
+ (BOOL)userPrefersSpanish {
|
+ (BOOL)userPrefersSpanish {
|
||||||
// Gets preferences based on what the user wants and the app provides.
|
// Gets language code based on what the user prefers and the app provides.
|
||||||
NSString *languageCode = [[[NSBundle mainBundle] preferredLocalizations] objectAtIndex:0];
|
NSString *languageCode = [[[NSBundle mainBundle] preferredLocalizations] objectAtIndex:0];
|
||||||
if (languageCode && [languageCode length] > 2) {
|
if (languageCode && [languageCode length] > 2) {
|
||||||
return [[[languageCode substringToIndex:2] lowercaseString] isEqualToString:@"es"];
|
return [[[languageCode substringToIndex:2] lowercaseString] isEqualToString:@"es"];
|
||||||
@ -35,7 +35,6 @@
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
return [[NSBundle bundleWithPath:[[MVMCoreGetterUtility bundleForMVMCore] pathForResource:@"en" ofType:@"lproj"]] localizedStringForKey:key value:@"" table:nil];
|
return [[NSBundle bundleWithPath:[[MVMCoreGetterUtility bundleForMVMCore] pathForResource:@"en" ofType:@"lproj"]] localizedStringForKey:key value:@"" table:nil];
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user