From 00d42d519ede19fba79990fd2bf8eee9ddddcfd7 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 6 Mar 2025 14:44:11 -0800 Subject: [PATCH] Translation: Properly support this string Properly support translating the System Default Device name for sound output devices. Pending a Spanish translation, but in its current state, it's no different from where it was before this change. Signed-off-by: Christopher Snowhill --- Preferences/Preferences/OutputsArrayController.m | 2 +- Preferences/Preferences/en.lproj/Localizable.strings | 1 + Preferences/Preferences/es.lproj/Localizable.strings | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Preferences/Preferences/OutputsArrayController.m b/Preferences/Preferences/OutputsArrayController.m index 7e8ecab10..c5559e93c 100644 --- a/Preferences/Preferences/OutputsArrayController.m +++ b/Preferences/Preferences/OutputsArrayController.m @@ -10,7 +10,7 @@ [self setSelectsInsertedObjects:NO]; NSDictionary *defaultDeviceInfo = @{ - @"name": @"System Default Device", + @"name": NSLocalizedStringFromTableInBundle(@"System Default Device", nil, [NSBundle bundleForClass:[self class]], @""), @"deviceID": @(-1), }; [self addObject:defaultDeviceInfo]; diff --git a/Preferences/Preferences/en.lproj/Localizable.strings b/Preferences/Preferences/en.lproj/Localizable.strings index 9c196c4c3..6bfde4d1b 100644 --- a/Preferences/Preferences/en.lproj/Localizable.strings +++ b/Preferences/Preferences/en.lproj/Localizable.strings @@ -54,3 +54,4 @@ "PitchHighConsistency" = "High Consistency"; "ChannelsApart" = "Apart"; "ChannelsTogether" = "Together"; +"System Default Device" = "System Default Device"; diff --git a/Preferences/Preferences/es.lproj/Localizable.strings b/Preferences/Preferences/es.lproj/Localizable.strings index 9e2131191..205a1e1dd 100644 --- a/Preferences/Preferences/es.lproj/Localizable.strings +++ b/Preferences/Preferences/es.lproj/Localizable.strings @@ -106,3 +106,4 @@ "PitchHighConsistency" = "Consistencia alta"; "ChannelsApart" = "Separados"; "ChannelsTogether" = "Juntos"; +"System Default Device" = "System Default Device";