[Translation Support] Update strings a bit.
Update the strings, and remove the comments where they won't be used. Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
1c2ecc1c7c
commit
ecb30dd734
|
@ -296,7 +296,7 @@ void *kAppControllerContext = &kAppControllerContext;
|
|||
|
||||
if([keyPath isEqualToString:@"playlistController.currentEntry"]) {
|
||||
PlaylistEntry *entry = playlistController.currentEntry;
|
||||
NSString *appTitle = NSLocalizedString(@"CogTitle", @"Cog");
|
||||
NSString *appTitle = NSLocalizedString(@"CogTitle", @"");
|
||||
if(!entry) {
|
||||
miniWindow.title = appTitle;
|
||||
mainWindow.title = appTitle;
|
||||
|
|
|
@ -281,7 +281,7 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response
|
|||
}
|
||||
}
|
||||
|
||||
notif.actionButtonTitle = NSLocalizedString(@"SkipAction", @"Skip");
|
||||
notif.actionButtonTitle = NSLocalizedString(@"SkipAction", @"");
|
||||
|
||||
[[NSUserNotificationCenter defaultUserNotificationCenter]
|
||||
scheduleNotification:notif];
|
||||
|
|
|
@ -913,7 +913,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
|||
|
||||
if([self shuffle] != ShuffleOff) [self resetShuffleList];
|
||||
|
||||
[[self undoManager] setActionName:NSLocalizedString(@"PlaylistRandomizationAction", @"Playlist Randomization")];
|
||||
[[self undoManager] setActionName:NSLocalizedString(@"PlaylistRandomizationAction", @"")];
|
||||
}
|
||||
|
||||
- (void)unrandomizeList:(NSArray *)entries {
|
||||
|
|
|
@ -343,9 +343,9 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
|||
return @[];
|
||||
}
|
||||
|
||||
[self beginProgress:NSLocalizedString(@"ProgressActionLoader", @"playlist loader inserting files")];
|
||||
[self beginProgress:NSLocalizedString(@"ProgressActionLoader", @"")];
|
||||
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoaderListingFiles", @"collecting files") percentOfTotal:20.0];
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoaderListingFiles", @"") percentOfTotal:20.0];
|
||||
|
||||
if(index < 0)
|
||||
index = 0;
|
||||
|
@ -390,7 +390,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
|||
sortedURLs = expandedURLs;
|
||||
}
|
||||
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoaderFilteringContainerFiles", @"handling container file types") percentOfTotal:20.0];
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoaderFilteringContainerFiles", @"") percentOfTotal:20.0];
|
||||
|
||||
progressstep = [sortedURLs count] ? 100.0 / (double)([sortedURLs count]) : 0;
|
||||
|
||||
|
@ -422,7 +422,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
|||
[self completeProgressJob];
|
||||
|
||||
if([fileURLs count] > 0) {
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoaderFilteringFiles", @"eliminating unsupported file types") percentOfTotal:20.0];
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoaderFilteringFiles", @"") percentOfTotal:20.0];
|
||||
} else {
|
||||
[self setProgressStatus:60.0];
|
||||
}
|
||||
|
@ -461,7 +461,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
|||
}
|
||||
|
||||
if([containedURLs count] > 0) {
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoaderFilteringContainedFiles", @"eliminating unsupported file types from containers") percentOfTotal:20.0];
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoaderFilteringContainedFiles", @"") percentOfTotal:20.0];
|
||||
} else {
|
||||
[self setProgressStatus:80.0];
|
||||
}
|
||||
|
@ -500,7 +500,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
|||
return @[];
|
||||
}
|
||||
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoaderAddingEntries", @"creating and adding playlist entries") percentOfTotal:20.0];
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoaderAddingEntries", @"") percentOfTotal:20.0];
|
||||
|
||||
progressstep = 100.0 / (double)(count);
|
||||
|
||||
|
@ -568,8 +568,8 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
|||
|
||||
metadataLoadInProgress = YES;
|
||||
|
||||
[self beginProgress:NSLocalizedString(@"ProgressActionLoadingMetadata", @"loading metadata for tracks")];
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoadingMetadata", @"processing files") percentOfTotal:50.0];
|
||||
[self beginProgress:NSLocalizedString(@"ProgressActionLoadingMetadata", @"")];
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoadingMetadata", @"") percentOfTotal:50.0];
|
||||
|
||||
[self performSelectorOnMainThread:@selector(syncLoadInfoForEntries:) withObject:arrayFirst waitUntilDone:YES];
|
||||
|
||||
|
@ -600,8 +600,8 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
|||
progressstep = 100.0 / (double)([entries count] + 1);
|
||||
progress = progressstep;
|
||||
} else if([entries count]) {
|
||||
[self beginProgress:NSLocalizedString(@"ProgressActionLoadingMetadata", @"loading metadata for tracks")];
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoadingMetadata", @"processing files") percentOfTotal:50.0];
|
||||
[self beginProgress:NSLocalizedString(@"ProgressActionLoadingMetadata", @"")];
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoadingMetadata", @"") percentOfTotal:50.0];
|
||||
|
||||
progressstep = 100.0 / (double)([entries count]);
|
||||
progress = 0.0;
|
||||
|
@ -683,7 +683,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
|||
progress = 0.0;
|
||||
[self completeProgressJob];
|
||||
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionMetadataApply", @"applying info to playlist storage") percentOfTotal:50.0];
|
||||
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionMetadataApply", @"") percentOfTotal:50.0];
|
||||
|
||||
progressstep = 200.0 / (double)([outArray count]);
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
[self setVerticalMotionCanBeginDrag:YES];
|
||||
|
||||
// Set up header context menu
|
||||
headerContextMenu = [[NSMenu alloc] initWithTitle:NSLocalizedString(@"PlaylistHeaderContextMenuTitle", @"Playlist Header Context Menu")];
|
||||
headerContextMenu = [[NSMenu alloc] initWithTitle:NSLocalizedString(@"PlaylistHeaderContextMenuTitle", @"")];
|
||||
|
||||
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"identifier"
|
||||
ascending:YES];
|
||||
|
@ -58,9 +58,9 @@
|
|||
for(NSTableColumn *col in [columns sortedArrayUsingDescriptors:sortDescriptors]) {
|
||||
NSString *title;
|
||||
if([[col identifier] isEqualToString:@"status"]) {
|
||||
title = NSLocalizedString(@"PlaylistStatusColumn", @"Status");
|
||||
title = NSLocalizedString(@"PlaylistStatusColumn", @"");
|
||||
} else if([[col identifier] isEqualToString:@"index"]) {
|
||||
title = NSLocalizedString(@"PlaylistIndexColumn", @"Index");
|
||||
title = NSLocalizedString(@"PlaylistIndexColumn", @"");
|
||||
} else {
|
||||
title = [[col headerCell] title];
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
}
|
||||
|
||||
[self setReleasedWhenClosed:NO];
|
||||
[self setTitle:NSLocalizedString(@"PreferencesTitle", @"Preferences")];
|
||||
[self setTitle:NSLocalizedString(@"PreferencesTitle", @"")];
|
||||
[self center];
|
||||
|
||||
if(@available(macOS 11, *)) {
|
||||
|
|
|
@ -46,13 +46,6 @@
|
|||
|
||||
"PreferencesTitle" = "Preferences";
|
||||
|
||||
"ProgressActionUpdatingIndexes" = "updating playlist indexes";
|
||||
"ProgressActionMovingEntries" = "moving playlist entries";
|
||||
"ProgressActionInsertingEntries" = "inserting playlist entries";
|
||||
"ProgressActionUntrashingEntries" = "restoring playlist entries from the trash";
|
||||
"ProgressActionRemovingEntries" = "removing playlist entries";
|
||||
"ProgressActionTrashingEntries" = "moving playlist entries to the trash";
|
||||
|
||||
"ProgressActionLoader" = "playlist loader inserting files";
|
||||
"ProgressSubActionLoaderListingFiles" = "collecting files";
|
||||
"ProgressSubActionLoaderFilteringContainerFiles" = "handling container file types";
|
||||
|
|
|
@ -46,13 +46,6 @@
|
|||
|
||||
"PreferencesTitle" = "Preferences";
|
||||
|
||||
"ProgressActionUpdatingIndexes" = "updating playlist indexes";
|
||||
"ProgressActionMovingEntries" = "moving playlist entries";
|
||||
"ProgressActionInsertingEntries" = "inserting playlist entries";
|
||||
"ProgressActionUntrashingEntries" = "restoring playlist entries from the trash";
|
||||
"ProgressActionRemovingEntries" = "removing playlist entries";
|
||||
"ProgressActionTrashingEntries" = "moving playlist entries to the trash";
|
||||
|
||||
"ProgressActionLoader" = "playlist loader inserting files";
|
||||
"ProgressSubActionLoaderListingFiles" = "collecting files";
|
||||
"ProgressSubActionLoaderFilteringContainerFiles" = "handling container file types";
|
||||
|
|
Loading…
Reference in New Issue