Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Say where System Settings shows that legacy video device support was restored

Țugui Dragoș7f77817f51c3
diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstrings
index a3f06bb4..bdafaab5 100644
--- a/Localization/Peel/Localizable.xcstrings
+++ b/Localization/Peel/Localizable.xcstrings
@@ -178550,6 +178550,112 @@
}
}
},
+ "System Settings > Privacy & Security > Camera shows a warning when that support has been restored." : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "V Nastavení systému > Soukromí a zabezpečení > Kamera se zobrazí varování, když byla podpora starších videozařízení obnovena."
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Unter „Systemeinstellungen“ > „Datenschutz & Sicherheit“ > „Kamera“ wird eine Warnung angezeigt, wenn die Unterstützung für ältere Videogeräte wiederhergestellt wurde."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Cuando se ha restaurado la compatibilidad con dispositivos de vídeo antiguos, aparece un aviso en Ajustes del Sistema > Privacidad y seguridad > Cámara."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Lorsque l’ancienne prise en charge des appareils vidéo a été restaurée, un avertissement s’affiche dans Réglages Système > Confidentialité et sécurité > Caméra."
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "In Impostazioni di Sistema > Privacy e sicurezza > Fotocamera compare un avviso quando il supporto legacy per i dispositivi video è stato ripristinato."
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "レガシービデオデバイスのサポートが復元されている場合は、“システム設定”>“プライバシーとセキュリティ”>“カメラ”に警告が表示されます。"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "이전 비디오 기기 지원이 복원된 경우, 시스템 설정 > 개인정보 보호 및 보안 > 카메라에 경고가 표시됩니다."
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "In Systeeminstellingen > Privacy en beveiliging > Camera wordt een waarschuwing weergegeven als de ondersteuning voor verouderde videoapparaten is hersteld."
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "W Ustawieniach systemowych > Prywatność i ochrona > Kamera wyświetlane jest ostrzeżenie, gdy przywrócono obsługę starszych urządzeń wideo."
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Em Ajustes do Sistema > Privacidade e Segurança > Câmera, aparece um aviso quando essa compatibilidade tiver sido restaurada."
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "În Configurări sistem > Intimitate și securitate > Cameră este afișat un avertisment când software‑ul de asistență moștenit pentru dispozitivul video a fost restaurat."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "В разделе «Системные настройки» > «Конфиденциальность и безопасность» > «Камера» отображается предупреждение, если поддержка устаревших видеоустройств была восстановлена."
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "I Systeminställningar > Integritet och säkerhet > Kamera visas en varning när stödet för äldre videoenheter har återskapats."
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Eski video aygıtı desteği geri yüklenmişse, Sistem Ayarları > Gizlilik ve Güvenlik > Kamera bölümünde bir uyarı gösterilir."
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "У розділі Системні параметри > Приватність і безпека > Камера зʼявляється попередження, якщо підтримку застарілих відеопристроїв відновлено."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "如果已恢复旧视频设备支持,“系统设置”>“隐私与安全性”>“摄像头”中会出现警告。"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "回復舊版視訊裝置支援後,「系統設定」>「隱私權與安全性」>「相機」中會顯示警告。"
+ }
+ }
+ }
+ },
"System Settings > Screen Time > Content & Privacy > Siri, to turn off Siri AI or block capabilities such as Writing Assistance." : {
"localizations" : {
"cs" : {
diff --git a/Peel/Views/Plugins/PluginDetailView.swift b/Peel/Views/Plugins/PluginDetailView.swift
index 11251a91..5c7d473e 100644
--- a/Peel/Views/Plugins/PluginDetailView.swift
+++ b/Peel/Views/Plugins/PluginDetailView.swift
@@ -148,26 +148,29 @@ extension Plugin {
return whatGoes + forAllUsers
}
- private var whenItLoads: LocalizedStringResource? {
+ private var whenItLoads: [LocalizedStringResource] {
switch noLongerLoaded {
case .quickLookGenerator:
- "macOS no longer loads Quick Look generators like this one, so moving it changes nothing."
+ ["macOS no longer loads Quick Look generators like this one, so moving it changes nothing."]
case .internetPlugIn:
- "macOS and today’s browsers no longer load plug-ins like this one, so moving it changes nothing."
+ ["macOS and today’s browsers no longer load plug-ins like this one, so moving it changes nothing."]
case .contextualMenuItem:
- "macOS no longer loads contextual menu items like this one, so moving it changes nothing."
+ ["macOS no longer loads contextual menu items like this one, so moving it changes nothing."]
+ case nil where category == .cameraPlugIns:
+ [
+ "macOS loads plug-ins like this one only when legacy video device support has been restored in macOS Recovery. If it has, apps that use it may stop working.",
+ "System Settings > Privacy & Security > Camera shows a warning when that support has been restored.",
+ ]
case nil:
- category == .cameraPlugIns
- ? "macOS loads plug-ins like this one only when legacy video device support has been restored in macOS Recovery. If it has, apps that use it may stop working."
- : nil
+ []
}
}
private var whatGoes: [LocalizedStringResource] {
- if let whenItLoads {
+ if !whenItLoads.isEmpty {
return staysInTheTrash
- ? [whenItLoads, "History can’t put it back, since Peel’s helper puts back into that folder only what is root’s alone, but you can drag it back out in Finder."]
- : [whenItLoads]
+ ? whenItLoads + ["History can’t put it back, since Peel’s helper puts back into that folder only what is root’s alone, but you can drag it back out in Finder."]
+ : whenItLoads
}
return switch (isAQuickAction, staysInTheTrash) {
case (true, true):
diff --git a/PeelTests/PluginTextTests.swift b/PeelTests/PluginTextTests.swift
index 433450fa..909ebbb9 100644
--- a/PeelTests/PluginTextTests.swift
+++ b/PeelTests/PluginTextTests.swift
@@ -84,11 +84,13 @@ struct PluginTextTests {
var stays = camera
stays.staysInTheTrash = true
let legacy = String(localized: "macOS loads plug-ins like this one only when legacy video device support has been restored in macOS Recovery. If it has, apps that use it may stop working.")
+ let warning = String(localized: "System Settings > Privacy & Security > Camera shows a warning when that support has been restored.")
let everyAccount = String(localized: "Every account on this Mac has it, so moving it takes it from all of them.")
- #expect(camera.whenMoved.map { String(localized: $0) } == [legacy, everyAccount])
+ #expect(camera.whenMoved.map { String(localized: $0) } == [legacy, warning, everyAccount])
#expect(stays.whenMoved.map { String(localized: $0) } == [
legacy,
+ warning,
String(localized: "History can’t put it back, since Peel’s helper puts back into that folder only what is root’s alone, but you can drag it back out in Finder."),
everyAccount,
])