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.

VoiceOver reads a Found line as one translated sentence

Țugui Dragoș1287ce8b1d33
diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstrings
index 4b65987c..f67a38eb 100644
--- a/Localization/Peel/Localizable.xcstrings
+++ b/Localization/Peel/Localizable.xcstrings
@@ -9,6 +9,119 @@
"comment" : "Only placeholders: two paragraphs, each translated on its own, with a blank line between them.",
"shouldTranslate" : false
},
+ "%@ Found %@." : {
+ "comment" : "What VoiceOver reads for a line of the menu bar panel's Found list. The first %@ is the tool's own sentence, such as \"3.2 GB in 5 groups.\", with its own full stop; the second is when the tool found it, as macOS words a relative time, such as \"2 hours ago\" or \"yesterday\".",
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@ Nalezeno %2$@."
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@ Gefunden: %2$@."
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "%1$@ Found %2$@."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@ Encontrado %2$@."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@ Trouvé %2$@."
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@ Trovato %2$@."
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@%2$@、見つかりました。"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@ %2$@ 찾음."
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@ Gevonden: %2$@."
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@ Znaleziono %2$@."
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@ Encontrado %2$@."
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@ Găsit %2$@."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@ Найдено %2$@."
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@ Hittades %2$@."
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@ Peel bunları %2$@ buldu."
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@ Знайдено %2$@."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@%2$@找到。"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%1$@%2$@找到。"
+ }
+ }
+ }
+ },
"%@ asks you again for what it was allowed to access. History can’t undo this." : {
"localizations" : {
"cs" : {
diff --git a/Peel/Views/MenuBarFound.swift b/Peel/Views/MenuBarFound.swift
index 6c4bee5d..2d295549 100644
--- a/Peel/Views/MenuBarFound.swift
+++ b/Peel/Views/MenuBarFound.swift
@@ -97,7 +97,10 @@ struct MenuBarFound: View {
.onDisappear { if pointingAt == line.tool { pointingAt = nil } }
.help(Text("Open \(String(localized: line.tool.title))"))
.accessibilityLabel(Text(line.tool.title))
- .accessibilityValue(Text(verbatim: "\(String(line.sentence.characters)) \(line.date.formatted(.relative(presentation: .named)))"))
+ .accessibilityValue(Text(
+ "\(line.sentence) Found \(line.date, format: .relative(presentation: .named)).",
+ comment: "What VoiceOver reads for a line of the menu bar panel's Found list. The first %@ is the tool's own sentence, such as \"3.2 GB in 5 groups.\", with its own full stop; the second is when the tool found it, as macOS words a relative time, such as \"2 hours ago\" or \"yesterday\"."
+ ))
}
private func words(_ line: Line) -> some View {