[Translation Support] Fix several string constants
Several string constants were not fetching from the translation strings table. Fixed this. Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
f38f38ee4a
commit
f22a74ab3a
|
@ -249,9 +249,10 @@ void *kAppControllerContext = &kAppControllerContext;
|
|||
|
||||
if([keyPath isEqualToString:@"playlistController.currentEntry"]) {
|
||||
PlaylistEntry *entry = playlistController.currentEntry;
|
||||
NSString *appTitle = NSLocalizedString(@"CogTitle", @"Cog");
|
||||
if(!entry) {
|
||||
miniWindow.title = @"Cog";
|
||||
mainWindow.title = @"Cog";
|
||||
miniWindow.title = appTitle;
|
||||
mainWindow.title = appTitle;
|
||||
if(@available(macOS 11.0, *)) {
|
||||
miniWindow.subtitle = @"";
|
||||
mainWindow.subtitle = @"";
|
||||
|
@ -276,7 +277,7 @@ void *kAppControllerContext = &kAppControllerContext;
|
|||
}
|
||||
|
||||
if(@available(macOS 11.0, *)) {
|
||||
NSString *title = @"Cog";
|
||||
NSString *title = appTitle;
|
||||
if(entry.title) {
|
||||
title = entry.title;
|
||||
}
|
||||
|
@ -299,7 +300,7 @@ void *kAppControllerContext = &kAppControllerContext;
|
|||
miniWindow.subtitle = subtitle;
|
||||
mainWindow.subtitle = subtitle;
|
||||
} else {
|
||||
NSString *title = @"Cog";
|
||||
NSString *title = appTitle;
|
||||
if(entry.display) {
|
||||
title = entry.display;
|
||||
}
|
||||
|
|
|
@ -279,7 +279,7 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response
|
|||
}
|
||||
}
|
||||
|
||||
notif.actionButtonTitle = @"Skip";
|
||||
notif.actionButtonTitle = NSLocalizedString(@"SkipAction", @"Skip");
|
||||
|
||||
[[NSUserNotificationCenter defaultUserNotificationCenter]
|
||||
scheduleNotification:notif];
|
||||
|
|
|
@ -850,7 +850,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
|||
|
||||
if([self shuffle] != ShuffleOff) [self resetShuffleList];
|
||||
|
||||
[[self undoManager] setActionName:@"Playlist Randomization"];
|
||||
[[self undoManager] setActionName:NSLocalizedString(@"PlaylistRandomizationAction", @"Playlist Randomization")];
|
||||
}
|
||||
|
||||
- (void)unrandomizeList:(NSArray *)entries {
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
[self setVerticalMotionCanBeginDrag:YES];
|
||||
|
||||
// Set up header context menu
|
||||
headerContextMenu = [[NSMenu alloc] initWithTitle:@"Playlist Header Context Menu"];
|
||||
headerContextMenu = [[NSMenu alloc] initWithTitle:NSLocalizedString(@"PlaylistHeaderContextMenuTitle", @"Playlist Header Context Menu")];
|
||||
|
||||
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 = @"Status";
|
||||
title = NSLocalizedString(@"PlaylistStatusColumn", @"Status");
|
||||
} else if([[col identifier] isEqualToString:@"index"]) {
|
||||
title = @"Index";
|
||||
title = NSLocalizedString(@"PlaylistIndexColumn", @"Index");
|
||||
} else {
|
||||
title = [[col headerCell] title];
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
}
|
||||
|
||||
[self setReleasedWhenClosed:NO];
|
||||
[self setTitle:@"Preferences"];
|
||||
[self setTitle:NSLocalizedString(@"PreferencesTitle", @"Preferences")];
|
||||
[self center];
|
||||
|
||||
if(@available(macOS 11, *)) {
|
||||
|
|
|
@ -32,3 +32,16 @@
|
|||
"QueuedTrackTooltip" = "Queued";
|
||||
"ErrorTrackTooltip" = "Error";
|
||||
"StopAfterTrackTooltip" = "Stop After Track";
|
||||
|
||||
"PlaylistHeaderContextMenuTitle" = "Playlist Header Context Menu";
|
||||
|
||||
"PlaylistStatusColumn" = "Status";
|
||||
"PlaylistIndexColumn" = "Index";
|
||||
|
||||
"PlaylistRandomizationAction" = "Playlist Randomization";
|
||||
|
||||
"SkipAction" = "Skip";
|
||||
|
||||
"CogTitle" = "Cog";
|
||||
|
||||
"PreferencesTitle" = "Preferences";
|
||||
|
|
|
@ -32,3 +32,16 @@
|
|||
"QueuedTrackTooltip" = "Queued";
|
||||
"ErrorTrackTooltip" = "Error";
|
||||
"StopAfterTrackTooltip" = "Stop After Track";
|
||||
|
||||
"PlaylistHeaderContextMenuTitle" = "Playlist Header Context Menu";
|
||||
|
||||
"PlaylistStatusColumn" = "Status";
|
||||
"PlaylistIndexColumn" = "Index";
|
||||
|
||||
"PlaylistRandomizationAction" = "Playlist Randomization";
|
||||
|
||||
"SkipAction" = "Skip";
|
||||
|
||||
"CogTitle" = "Cog";
|
||||
|
||||
"PreferencesTitle" = "Preferences";
|
||||
|
|
Loading…
Reference in New Issue