[Translations] Load PlaylistEntry error messages
These error messages should be loaded from the main bundle, where the class is located. Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
ecb30dd734
commit
41d4c7458e
|
@ -189,7 +189,7 @@ NSDictionary *makeRGInfo(PlaylistEntry *pe) {
|
|||
|
||||
if(!pe.url) {
|
||||
pe.error = YES;
|
||||
pe.errorMessage = NSLocalizedString(@"ErrorMessageBadFile", @"");
|
||||
pe.errorMessage = NSLocalizedStringFromTableInBundle(@"ErrorMessageBadFile", nil, [NSBundle bundleForClass:[self class]], @"");
|
||||
[[FIRCrashlytics crashlytics] log:@"Attempting to play bad file."];
|
||||
return;
|
||||
}
|
||||
|
@ -591,7 +591,7 @@ NSDictionary *makeRGInfo(PlaylistEntry *pe) {
|
|||
[[FIRCrashlytics crashlytics] log:@"Invalid playlist entry reached."];
|
||||
[player setNextStream:nil];
|
||||
pe.error = YES;
|
||||
pe.errorMessage = NSLocalizedString(@"ErrorMessageBadFile", @"");
|
||||
pe.errorMessage = NSLocalizedStringFromTableInBundle(@"ErrorMessageBadFile", nil, [NSBundle bundleForClass:[self class]], @"");
|
||||
} else {
|
||||
[[FIRCrashlytics crashlytics] log:@"End of playlist reached."];
|
||||
[player setNextStream:nil];
|
||||
|
|
|
@ -484,7 +484,7 @@ NSURL *_Nullable urlForPath(NSString *_Nullable path) {
|
|||
- (void)setMetadata:(NSDictionary *)metadata {
|
||||
if(metadata == nil) {
|
||||
self.error = YES;
|
||||
self.errorMessage = NSLocalizedString(@"ErrorMetadata", @"");
|
||||
self.errorMessage = NSLocalizedStringFromTableInBundle(@"ErrorMetadata", nil, [NSBundle bundleForClass:[self class]], @"");
|
||||
} else {
|
||||
self.volume = 1;
|
||||
[self setValuesForKeysWithDictionary:metadata];
|
||||
|
|
|
@ -646,7 +646,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
|||
[weakLock lock];
|
||||
if(!weakPe.url) {
|
||||
weakPe.error = YES;
|
||||
weakPe.errorMessage = NSLocalizedString(@"ErrorMessageBadFile", @"");
|
||||
weakPe.errorMessage = NSLocalizedStringFromTableInBundle(@"ErrorMessageBadFile", nil, [NSBundle bundleForClass:[self class]], @"");
|
||||
}
|
||||
progress += progressstep;
|
||||
[self setProgressJobStatus:progress];
|
||||
|
|
Loading…
Reference in New Issue