mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Fix strings detections and translates the entire "Calendar" section in settings
This commit is contained in:
parent
379c04e79a
commit
c76224a39d
2 changed files with 222 additions and 12 deletions
|
|
@ -2615,6 +2615,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"all-day" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "dia todo"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"All-day" : {
|
||||
"localizations" : {
|
||||
"ar" : {
|
||||
|
|
@ -4459,6 +4469,16 @@
|
|||
},
|
||||
"shouldTranslate" : false
|
||||
},
|
||||
"calendar" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "calendário"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Calendar" : {
|
||||
"localizations" : {
|
||||
"ar" : {
|
||||
|
|
@ -5933,6 +5953,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"color" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "cor"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Color Details" : {
|
||||
"localizations" : {
|
||||
"fr" : {
|
||||
|
|
@ -6197,6 +6227,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"completed" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "completo"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Configuration" : {
|
||||
"localizations" : {
|
||||
"fr" : {
|
||||
|
|
@ -8780,6 +8820,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"Enable reminder live activity" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Ativar lembrete de atividade ao vivo"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Enable screen color picking functionality. Use Cmd+Shift+P to quickly access the color picker." : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
|
|
@ -9226,6 +9276,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"events" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "eventos"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Exit" : {
|
||||
"localizations" : {
|
||||
"ar" : {
|
||||
|
|
@ -11964,6 +12024,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"live activity" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "atividades ao vivo"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Live Activity & Feedback" : {
|
||||
"comment" : "The header for the \"Live Activity & Feedback\" section in the lock screen settings.",
|
||||
"isCommentAutoGenerated" : true,
|
||||
|
|
@ -12034,6 +12104,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"lock screen" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "tela de bloqueio"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Lock Screen" : {
|
||||
"localizations" : {
|
||||
"fr" : {
|
||||
|
|
@ -17520,6 +17600,36 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"reminder" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "lembrete"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"reminder chip" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "chip de lembrete"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"reminder countdown" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "contagem regressiva do lembrete"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Reminder Live Activity" : {
|
||||
"comment" : "A section header that lists the options related to live activity notifications for reminders.",
|
||||
"isCommentAutoGenerated" : true,
|
||||
|
|
@ -17532,6 +17642,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"reminder widget" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "widget de lembrete"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Reminders" : {
|
||||
"localizations" : {
|
||||
"fr" : {
|
||||
|
|
@ -18913,6 +19033,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"Show calendar" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Mostrar Calendário"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Show Color History" : {
|
||||
"localizations" : {
|
||||
"fr" : {
|
||||
|
|
@ -18971,6 +19101,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"Show lock screen reminder" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Mostrar lembrete na tela de bloqueio"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Show on a specific display" : {
|
||||
"localizations" : {
|
||||
"ar" : {
|
||||
|
|
@ -20928,6 +21068,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"titles" : {
|
||||
"localizations" : {
|
||||
"pt-BR" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "títulos"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Toggle Notch Open:" : {
|
||||
"localizations" : {
|
||||
"ar" : {
|
||||
|
|
|
|||
|
|
@ -717,15 +717,75 @@ struct SettingsView: View {
|
|||
SettingsSearchEntry(tab: .media, title: "Enable album art parallax effect", keywords: ["parallax", "parallax effect", "album art"], highlightID: SettingsTab.media.highlightID(for: "Enable album art parallax effect")),
|
||||
|
||||
// Calendar
|
||||
SettingsSearchEntry(tab: .calendar, title: "Show calendar", keywords: ["calendar", "events"], highlightID: SettingsTab.calendar.highlightID(for: "Show calendar")),
|
||||
SettingsSearchEntry(tab: .calendar, title: "Enable reminder live activity", keywords: ["reminder", "live activity"], highlightID: SettingsTab.calendar.highlightID(for: "Enable reminder live activity")),
|
||||
SettingsSearchEntry(tab: .calendar, title: "Countdown style", keywords: ["reminder countdown"], highlightID: SettingsTab.calendar.highlightID(for: "Countdown style")),
|
||||
SettingsSearchEntry(tab: .calendar, title: "Show lock screen reminder", keywords: ["lock screen", "reminder widget"], highlightID: SettingsTab.calendar.highlightID(for: "Show lock screen reminder")),
|
||||
SettingsSearchEntry(tab: .calendar, title: "Chip color", keywords: ["reminder chip", "color"], highlightID: SettingsTab.calendar.highlightID(for: "Chip color")),
|
||||
SettingsSearchEntry(tab: .calendar, title: "Hide all-day events", keywords: ["calendar", "all-day"], highlightID: SettingsTab.calendar.highlightID(for: "Hide all-day events")),
|
||||
SettingsSearchEntry(tab: .calendar, title: "Hide completed reminders", keywords: ["reminder", "completed"], highlightID: SettingsTab.calendar.highlightID(for: "Hide completed reminders")),
|
||||
SettingsSearchEntry(tab: .calendar, title: "Show full event titles", keywords: ["calendar", "titles"], highlightID: SettingsTab.calendar.highlightID(for: "Show full event titles")),
|
||||
SettingsSearchEntry(tab: .calendar, title: "Auto-scroll to next event", keywords: ["calendar", "scroll"], highlightID: SettingsTab.calendar.highlightID(for: "Auto-scroll to next event")),
|
||||
SettingsSearchEntry(
|
||||
tab: .calendar,
|
||||
title: String(localized: "Show calendar"),
|
||||
keywords: [String(localized: "calendar"), String(localized: "events")],
|
||||
highlightID: SettingsTab.calendar.highlightID(for: "Show calendar")
|
||||
),
|
||||
SettingsSearchEntry(
|
||||
tab: .calendar,
|
||||
title: String(localized: "Enable reminder live activity"),
|
||||
keywords: [String(localized: "reminder"), String(localized: "live activity")],
|
||||
highlightID: SettingsTab.calendar.highlightID(for: "Enable reminder live activity")
|
||||
),
|
||||
SettingsSearchEntry(
|
||||
tab: .calendar,
|
||||
title: String(localized:"Countdown style"),
|
||||
keywords: [String(localized:"reminder countdown")],
|
||||
highlightID: SettingsTab.calendar.highlightID(for: "Countdown style")
|
||||
),
|
||||
SettingsSearchEntry(
|
||||
tab: .calendar,
|
||||
title: String(localized:"Show lock screen reminder"),
|
||||
keywords: [String(localized:"lock screen"), String(localized:"reminder widget")],
|
||||
highlightID: SettingsTab.calendar.highlightID(for: "Show lock screen reminder")
|
||||
),
|
||||
SettingsSearchEntry(
|
||||
tab: .calendar,
|
||||
title: String(localized: "Chip color"),
|
||||
keywords: [
|
||||
String(localized: "reminder chip"),
|
||||
String(localized: "color")
|
||||
],
|
||||
highlightID: SettingsTab.calendar.highlightID(for: "Chip color")
|
||||
),
|
||||
SettingsSearchEntry(
|
||||
tab: .calendar,
|
||||
title: String(localized: "Hide all-day events"),
|
||||
keywords: [
|
||||
String(localized: "calendar"),
|
||||
String(localized: "all-day")
|
||||
],
|
||||
highlightID: SettingsTab.calendar.highlightID(for: "Hide all-day events")
|
||||
),
|
||||
SettingsSearchEntry(
|
||||
tab: .calendar,
|
||||
title: String(localized: "Hide completed reminders"),
|
||||
keywords: [
|
||||
String(localized: "reminder"),
|
||||
String(localized: "completed")
|
||||
],
|
||||
highlightID: SettingsTab.calendar.highlightID(for: "Hide completed reminders")
|
||||
),
|
||||
SettingsSearchEntry(
|
||||
tab: .calendar,
|
||||
title: String(localized: "Show full event titles"),
|
||||
keywords: [
|
||||
String(localized: "calendar"),
|
||||
String(localized: "titles")
|
||||
],
|
||||
highlightID: SettingsTab.calendar.highlightID(for: "Show full event titles")
|
||||
),
|
||||
SettingsSearchEntry(
|
||||
tab: .calendar,
|
||||
title: String(localized: "Auto-scroll to next event"),
|
||||
keywords: [
|
||||
String(localized: "calendar"),
|
||||
String(localized: "scroll")
|
||||
],
|
||||
highlightID: SettingsTab.calendar.highlightID(for: "Auto-scroll to next event")
|
||||
),
|
||||
|
||||
// Shelf
|
||||
SettingsSearchEntry(tab: .shelf, title: "Enable shelf", keywords: ["shelf", "dock"], highlightID: SettingsTab.shelf.highlightID(for: "Enable shelf")),
|
||||
|
|
@ -2329,7 +2389,7 @@ struct CalendarSettings: View {
|
|||
Text("Permissions")
|
||||
}
|
||||
|
||||
Defaults.Toggle("Show calendar", key: .showCalendar)
|
||||
Defaults.Toggle(String(localized:"Show calendar"), key: .showCalendar)
|
||||
.settingsHighlight(id: highlightID("Show calendar"))
|
||||
|
||||
Section(header: Text("Event List")) {
|
||||
|
|
@ -2353,7 +2413,7 @@ struct CalendarSettings: View {
|
|||
}
|
||||
|
||||
Section(header: Text("Reminder Live Activity")) {
|
||||
Defaults.Toggle("Enable reminder live activity", key: .enableReminderLiveActivity)
|
||||
Defaults.Toggle(String(localized:"Enable reminder live activity"), key: .enableReminderLiveActivity)
|
||||
.settingsHighlight(id: highlightID("Enable reminder live activity"))
|
||||
|
||||
Picker("Countdown style", selection: $reminderPresentationStyle) {
|
||||
|
|
@ -2396,7 +2456,7 @@ struct CalendarSettings: View {
|
|||
}
|
||||
|
||||
Section(header: Text("Lock Screen Reminder Widget")) {
|
||||
Defaults.Toggle("Show lock screen reminder", key: .enableLockScreenReminderWidget)
|
||||
Defaults.Toggle(String(localized:"Show lock screen reminder"), key: .enableLockScreenReminderWidget)
|
||||
.settingsHighlight(id: highlightID("Show lock screen reminder"))
|
||||
|
||||
Picker("Chip color", selection: $lockScreenReminderChipStyle) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue