redirecting hardcoded key
This commit is contained in:
parent
9b8da4891d
commit
a90824a23d
@ -24,12 +24,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
+ (nullable NSString *)hardcodedStringWithKey:(nonnull NSString *)key {
|
+ (nullable NSString *)hardcodedStringWithKey:(nonnull NSString *)key {
|
||||||
// If the app language is not english... force load from the english file anyway.
|
// Redirect key with relevant module.
|
||||||
if ([MVMCoreGetterUtility userPrefersSpanish]) {
|
return [MVMCoreGetterUtility hardcodedStringWithKey:key bundle:[MVMCoreUIUtility bundleForMVMCoreUI]];
|
||||||
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];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (nullable NSString *)localizedImageName:(nullable NSString *)imageName {
|
+ (nullable NSString *)localizedImageName:(nullable NSString *)imageName {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user