mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-29 08:04:32 +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" : {
|
"All-day" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"ar" : {
|
"ar" : {
|
||||||
|
|
@ -4459,6 +4469,16 @@
|
||||||
},
|
},
|
||||||
"shouldTranslate" : false
|
"shouldTranslate" : false
|
||||||
},
|
},
|
||||||
|
"calendar" : {
|
||||||
|
"localizations" : {
|
||||||
|
"pt-BR" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "calendário"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"Calendar" : {
|
"Calendar" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"ar" : {
|
"ar" : {
|
||||||
|
|
@ -5933,6 +5953,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"color" : {
|
||||||
|
"localizations" : {
|
||||||
|
"pt-BR" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "cor"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"Color Details" : {
|
"Color Details" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"fr" : {
|
"fr" : {
|
||||||
|
|
@ -6197,6 +6227,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"completed" : {
|
||||||
|
"localizations" : {
|
||||||
|
"pt-BR" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "completo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"Configuration" : {
|
"Configuration" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"fr" : {
|
"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." : {
|
"Enable screen color picking functionality. Use Cmd+Shift+P to quickly access the color picker." : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"pt-BR" : {
|
"pt-BR" : {
|
||||||
|
|
@ -9226,6 +9276,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"events" : {
|
||||||
|
"localizations" : {
|
||||||
|
"pt-BR" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "eventos"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"Exit" : {
|
"Exit" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"ar" : {
|
"ar" : {
|
||||||
|
|
@ -11964,6 +12024,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"live activity" : {
|
||||||
|
"localizations" : {
|
||||||
|
"pt-BR" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "atividades ao vivo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"Live Activity & Feedback" : {
|
"Live Activity & Feedback" : {
|
||||||
"comment" : "The header for the \"Live Activity & Feedback\" section in the lock screen settings.",
|
"comment" : "The header for the \"Live Activity & Feedback\" section in the lock screen settings.",
|
||||||
"isCommentAutoGenerated" : true,
|
"isCommentAutoGenerated" : true,
|
||||||
|
|
@ -12034,6 +12104,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"lock screen" : {
|
||||||
|
"localizations" : {
|
||||||
|
"pt-BR" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "tela de bloqueio"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"Lock Screen" : {
|
"Lock Screen" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"fr" : {
|
"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" : {
|
"Reminder Live Activity" : {
|
||||||
"comment" : "A section header that lists the options related to live activity notifications for reminders.",
|
"comment" : "A section header that lists the options related to live activity notifications for reminders.",
|
||||||
"isCommentAutoGenerated" : true,
|
"isCommentAutoGenerated" : true,
|
||||||
|
|
@ -17532,6 +17642,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"reminder widget" : {
|
||||||
|
"localizations" : {
|
||||||
|
"pt-BR" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "widget de lembrete"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"Reminders" : {
|
"Reminders" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"fr" : {
|
"fr" : {
|
||||||
|
|
@ -18913,6 +19033,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"Show calendar" : {
|
||||||
|
"localizations" : {
|
||||||
|
"pt-BR" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "Mostrar Calendário"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"Show Color History" : {
|
"Show Color History" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"fr" : {
|
"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" : {
|
"Show on a specific display" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"ar" : {
|
"ar" : {
|
||||||
|
|
@ -20928,6 +21068,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"titles" : {
|
||||||
|
"localizations" : {
|
||||||
|
"pt-BR" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "títulos"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"Toggle Notch Open:" : {
|
"Toggle Notch Open:" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"ar" : {
|
"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")),
|
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
|
// Calendar
|
||||||
SettingsSearchEntry(tab: .calendar, title: "Show calendar", keywords: ["calendar", "events"], highlightID: SettingsTab.calendar.highlightID(for: "Show calendar")),
|
SettingsSearchEntry(
|
||||||
SettingsSearchEntry(tab: .calendar, title: "Enable reminder live activity", keywords: ["reminder", "live activity"], highlightID: SettingsTab.calendar.highlightID(for: "Enable reminder live activity")),
|
tab: .calendar,
|
||||||
SettingsSearchEntry(tab: .calendar, title: "Countdown style", keywords: ["reminder countdown"], highlightID: SettingsTab.calendar.highlightID(for: "Countdown style")),
|
title: String(localized: "Show calendar"),
|
||||||
SettingsSearchEntry(tab: .calendar, title: "Show lock screen reminder", keywords: ["lock screen", "reminder widget"], highlightID: SettingsTab.calendar.highlightID(for: "Show lock screen reminder")),
|
keywords: [String(localized: "calendar"), String(localized: "events")],
|
||||||
SettingsSearchEntry(tab: .calendar, title: "Chip color", keywords: ["reminder chip", "color"], highlightID: SettingsTab.calendar.highlightID(for: "Chip color")),
|
highlightID: SettingsTab.calendar.highlightID(for: "Show calendar")
|
||||||
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(
|
||||||
SettingsSearchEntry(tab: .calendar, title: "Show full event titles", keywords: ["calendar", "titles"], highlightID: SettingsTab.calendar.highlightID(for: "Show full event titles")),
|
tab: .calendar,
|
||||||
SettingsSearchEntry(tab: .calendar, title: "Auto-scroll to next event", keywords: ["calendar", "scroll"], highlightID: SettingsTab.calendar.highlightID(for: "Auto-scroll to next event")),
|
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
|
// Shelf
|
||||||
SettingsSearchEntry(tab: .shelf, title: "Enable shelf", keywords: ["shelf", "dock"], highlightID: SettingsTab.shelf.highlightID(for: "Enable 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")
|
Text("Permissions")
|
||||||
}
|
}
|
||||||
|
|
||||||
Defaults.Toggle("Show calendar", key: .showCalendar)
|
Defaults.Toggle(String(localized:"Show calendar"), key: .showCalendar)
|
||||||
.settingsHighlight(id: highlightID("Show calendar"))
|
.settingsHighlight(id: highlightID("Show calendar"))
|
||||||
|
|
||||||
Section(header: Text("Event List")) {
|
Section(header: Text("Event List")) {
|
||||||
|
|
@ -2353,7 +2413,7 @@ struct CalendarSettings: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
Section(header: Text("Reminder Live Activity")) {
|
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"))
|
.settingsHighlight(id: highlightID("Enable reminder live activity"))
|
||||||
|
|
||||||
Picker("Countdown style", selection: $reminderPresentationStyle) {
|
Picker("Countdown style", selection: $reminderPresentationStyle) {
|
||||||
|
|
@ -2396,7 +2456,7 @@ struct CalendarSettings: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
Section(header: Text("Lock Screen Reminder Widget")) {
|
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"))
|
.settingsHighlight(id: highlightID("Show lock screen reminder"))
|
||||||
|
|
||||||
Picker("Chip color", selection: $lockScreenReminderChipStyle) {
|
Picker("Chip color", selection: $lockScreenReminderChipStyle) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue