Browse Source

Update iVersion.m

pull/92/head
Abhishek 4 years ago
parent
commit
217bcff5a7
  1. 2
      Clocker/Dependencies/iVersion/iVersion.m

2
Clocker/Dependencies/iVersion/iVersion.m

@ -147,7 +147,7 @@ static NSString *mostRecentVersionInDict(NSDictionary *dictionary)
bundle = [NSBundle bundleWithPath:bundlePath] ?: [NSBundle mainBundle]; bundle = [NSBundle bundleWithPath:bundlePath] ?: [NSBundle mainBundle];
} }
defaultString = [bundle localizedStringForKey:key value:defaultString table:nil]; defaultString = [bundle localizedStringForKey:key value:defaultString table:nil];
return [[NSBundle mainBundle] localizedStringForKey:key value:defaultString table:nil]; return defaultString ?: [[NSBundle mainBundle] localizedStringForKey:key value:defaultString table:nil];
} }
- (iVersion *)init - (iVersion *)init

Loading…
Cancel
Save