updated comment

This commit is contained in:
Kevin G Christiano 2021-03-17 11:46:09 -04:00
parent 86819283c0
commit 63abf3d35e

View File

@ -19,7 +19,7 @@
}
+ (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];
if (languageCode && [languageCode length] > 2) {
return [[[languageCode substringToIndex:2] lowercaseString] isEqualToString:@"es"];
@ -35,7 +35,6 @@
} else {
return [[NSBundle bundleWithPath:[[MVMCoreGetterUtility bundleForMVMCore] pathForResource:@"en" ofType:@"lproj"]] localizedStringForKey:key value:@"" table:nil];
}
}