[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
Christopher Snowhill 2022-06-18 16:10:18 -07:00
parent 1c2ecc1c7c
commit ecb30dd734
8 changed files with 18 additions and 32 deletions

View File

@ -296,7 +296,7 @@ void *kAppControllerContext = &kAppControllerContext;
if([keyPath isEqualToString:@"playlistController.currentEntry"]) { if([keyPath isEqualToString:@"playlistController.currentEntry"]) {
PlaylistEntry *entry = playlistController.currentEntry; PlaylistEntry *entry = playlistController.currentEntry;
NSString *appTitle = NSLocalizedString(@"CogTitle", @"Cog"); NSString *appTitle = NSLocalizedString(@"CogTitle", @"");
if(!entry) { if(!entry) {
miniWindow.title = appTitle; miniWindow.title = appTitle;
mainWindow.title = appTitle; mainWindow.title = appTitle;

View File

@ -281,7 +281,7 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response
} }
} }
notif.actionButtonTitle = NSLocalizedString(@"SkipAction", @"Skip"); notif.actionButtonTitle = NSLocalizedString(@"SkipAction", @"");
[[NSUserNotificationCenter defaultUserNotificationCenter] [[NSUserNotificationCenter defaultUserNotificationCenter]
scheduleNotification:notif]; scheduleNotification:notif];

View File

@ -913,7 +913,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
if([self shuffle] != ShuffleOff) [self resetShuffleList]; if([self shuffle] != ShuffleOff) [self resetShuffleList];
[[self undoManager] setActionName:NSLocalizedString(@"PlaylistRandomizationAction", @"Playlist Randomization")]; [[self undoManager] setActionName:NSLocalizedString(@"PlaylistRandomizationAction", @"")];
} }
- (void)unrandomizeList:(NSArray *)entries { - (void)unrandomizeList:(NSArray *)entries {

View File

@ -343,9 +343,9 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
return @[]; 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) if(index < 0)
index = 0; index = 0;
@ -390,7 +390,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
sortedURLs = expandedURLs; 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; 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]; [self completeProgressJob];
if([fileURLs count] > 0) { if([fileURLs count] > 0) {
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoaderFilteringFiles", @"eliminating unsupported file types") percentOfTotal:20.0]; [self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoaderFilteringFiles", @"") percentOfTotal:20.0];
} else { } else {
[self setProgressStatus:60.0]; [self setProgressStatus:60.0];
} }
@ -461,7 +461,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
} }
if([containedURLs count] > 0) { 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 { } else {
[self setProgressStatus:80.0]; [self setProgressStatus:80.0];
} }
@ -500,7 +500,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
return @[]; 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); progressstep = 100.0 / (double)(count);
@ -568,8 +568,8 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
metadataLoadInProgress = YES; metadataLoadInProgress = YES;
[self beginProgress:NSLocalizedString(@"ProgressActionLoadingMetadata", @"loading metadata for tracks")]; [self beginProgress:NSLocalizedString(@"ProgressActionLoadingMetadata", @"")];
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoadingMetadata", @"processing files") percentOfTotal:50.0]; [self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoadingMetadata", @"") percentOfTotal:50.0];
[self performSelectorOnMainThread:@selector(syncLoadInfoForEntries:) withObject:arrayFirst waitUntilDone:YES]; [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); progressstep = 100.0 / (double)([entries count] + 1);
progress = progressstep; progress = progressstep;
} else if([entries count]) { } else if([entries count]) {
[self beginProgress:NSLocalizedString(@"ProgressActionLoadingMetadata", @"loading metadata for tracks")]; [self beginProgress:NSLocalizedString(@"ProgressActionLoadingMetadata", @"")];
[self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoadingMetadata", @"processing files") percentOfTotal:50.0]; [self beginProgressJob:NSLocalizedString(@"ProgressSubActionLoadingMetadata", @"") percentOfTotal:50.0];
progressstep = 100.0 / (double)([entries count]); progressstep = 100.0 / (double)([entries count]);
progress = 0.0; progress = 0.0;
@ -683,7 +683,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
progress = 0.0; progress = 0.0;
[self completeProgressJob]; [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]); progressstep = 200.0 / (double)([outArray count]);

View File

@ -47,7 +47,7 @@
[self setVerticalMotionCanBeginDrag:YES]; [self setVerticalMotionCanBeginDrag:YES];
// Set up header context menu // 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" NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"identifier"
ascending:YES]; ascending:YES];
@ -58,9 +58,9 @@
for(NSTableColumn *col in [columns sortedArrayUsingDescriptors:sortDescriptors]) { for(NSTableColumn *col in [columns sortedArrayUsingDescriptors:sortDescriptors]) {
NSString *title; NSString *title;
if([[col identifier] isEqualToString:@"status"]) { if([[col identifier] isEqualToString:@"status"]) {
title = NSLocalizedString(@"PlaylistStatusColumn", @"Status"); title = NSLocalizedString(@"PlaylistStatusColumn", @"");
} else if([[col identifier] isEqualToString:@"index"]) { } else if([[col identifier] isEqualToString:@"index"]) {
title = NSLocalizedString(@"PlaylistIndexColumn", @"Index"); title = NSLocalizedString(@"PlaylistIndexColumn", @"");
} else { } else {
title = [[col headerCell] title]; title = [[col headerCell] title];
} }

View File

@ -42,7 +42,7 @@
} }
[self setReleasedWhenClosed:NO]; [self setReleasedWhenClosed:NO];
[self setTitle:NSLocalizedString(@"PreferencesTitle", @"Preferences")]; [self setTitle:NSLocalizedString(@"PreferencesTitle", @"")];
[self center]; [self center];
if(@available(macOS 11, *)) { if(@available(macOS 11, *)) {

View File

@ -46,13 +46,6 @@
"PreferencesTitle" = "Preferences"; "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"; "ProgressActionLoader" = "playlist loader inserting files";
"ProgressSubActionLoaderListingFiles" = "collecting files"; "ProgressSubActionLoaderListingFiles" = "collecting files";
"ProgressSubActionLoaderFilteringContainerFiles" = "handling container file types"; "ProgressSubActionLoaderFilteringContainerFiles" = "handling container file types";

View File

@ -46,13 +46,6 @@
"PreferencesTitle" = "Preferences"; "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"; "ProgressActionLoader" = "playlist loader inserting files";
"ProgressSubActionLoaderListingFiles" = "collecting files"; "ProgressSubActionLoaderListingFiles" = "collecting files";
"ProgressSubActionLoaderFilteringContainerFiles" = "handling container file types"; "ProgressSubActionLoaderFilteringContainerFiles" = "handling container file types";