redirecting hardcoded key
This commit is contained in:
parent
9b8da4891d
commit
a90824a23d
@ -24,12 +24,8 @@
|
||||
}
|
||||
|
||||
+ (nullable NSString *)hardcodedStringWithKey:(nonnull NSString *)key {
|
||||
// If the app language is not english... force load from the english file anyway.
|
||||
if ([MVMCoreGetterUtility userPrefersSpanish]) {
|
||||
return [[NSBundle bundleWithPath:[[MVMCoreUIUtility bundleForMVMCoreUI] pathForResource:@"es" ofType:@"lproj"]] localizedStringForKey:key value:@"" table:nil];
|
||||
} else {
|
||||
return [[NSBundle bundleWithPath:[[MVMCoreUIUtility bundleForMVMCoreUI] pathForResource:@"en" ofType:@"lproj"]] localizedStringForKey:key value:@"" table:nil];
|
||||
}
|
||||
// Redirect key with relevant module.
|
||||
return [MVMCoreGetterUtility hardcodedStringWithKey:key bundle:[MVMCoreUIUtility bundleForMVMCoreUI]];
|
||||
}
|
||||
|
||||
+ (nullable NSString *)localizedImageName:(nullable NSString *)imageName {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user