Corrects some String detection for pickers

This commit is contained in:
Felipe Giacomini Cocco 2026-02-04 23:09:50 -03:00
commit 69d00d2f7a
4 changed files with 171 additions and 15 deletions

View file

@ -1398,6 +1398,16 @@
}
}
},
"±10 Seconds" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "±10 Segundos"
}
}
}
},
"0" : {
"comment" : "A label displayed in a circular gauge to indicate the minimum battery level.",
"isCommentAutoGenerated" : true,
@ -7507,6 +7517,16 @@
}
}
},
"Denied" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Negado"
}
}
}
},
"Denied/Revoked" : {
"comment" : "A label describing an extension with denied or revoked permissions.",
"isCommentAutoGenerated" : true,
@ -7573,6 +7593,9 @@
}
}
},
"Digital" : {
"shouldTranslate" : false
},
"Dimensions" : {
"localizations" : {
"pt-BR" : {
@ -9264,6 +9287,16 @@
}
}
},
"Event color" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Cor do evento"
}
}
}
},
"Event List" : {
"comment" : "A section header in the calendar settings view, describing the list of calendar events.",
"isCommentAutoGenerated" : true,
@ -9757,6 +9790,16 @@
}
}
},
"Full Access" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Acesso Total"
}
}
}
},
"Fully charged" : {
"comment" : "Charging fallback label when already charged",
"localizations" : {
@ -14030,6 +14073,16 @@
}
}
},
"Minutes" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Minutos"
}
}
}
},
"Mirror" : {
"localizations" : {
"ar" : {
@ -15648,6 +15701,16 @@
}
}
},
"Not Determined" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Não Determinado"
}
}
}
},
"Not Now" : {
"localizations" : {
"ar" : {
@ -17920,6 +17983,16 @@
}
}
},
"Restricted" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Restrito"
}
}
}
},
"Resume" : {
"localizations" : {
"fr" : {
@ -17998,6 +18071,16 @@
}
}
},
"Ring" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Círculo"
}
}
}
},
"Sampling can continue while the notch is closed when the timeout is disabled." : {
"localizations" : {
"pt-BR" : {
@ -19435,6 +19518,16 @@
}
}
},
"Skip forward or backward by ten seconds" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Pular dez segundos para frente ou para trás"
}
}
}
},
"Slider color" : {
"localizations" : {
"ar" : {
@ -20111,6 +20204,16 @@
}
}
},
"Standard previous/next track controls" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Controles anterior/próxima padrão "
}
}
}
},
"Start" : {
"localizations" : {
"fr" : {
@ -21309,6 +21412,16 @@
},
"shouldTranslate" : false
},
"Track Skip" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Pular Música"
}
}
}
},
"trackpad" : {
"shouldTranslate" : false
},
@ -21496,6 +21609,16 @@
}
}
},
"Unknown" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Desconhecido"
}
}
}
},
"Unlock advanced features and improve your experience. Upgrade now for more customizations!" : {
"localizations" : {
"ar" : {
@ -22748,6 +22871,16 @@
}
}
},
"White" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Branco"
}
}
}
},
"Widget Updates" : {
"comment" : "A label describing the number of times the extension has updated its widget.",
"isCommentAutoGenerated" : true,
@ -22798,6 +22931,16 @@
}
}
},
"Write Only" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Apenas Escrita"
}
}
}
},
"You" : {
"localizations" : {
"fr" : {

View file

@ -2459,9 +2459,10 @@ struct CalendarSettings: View {
Defaults.Toggle(String(localized:"Show lock screen reminder"), key: .enableLockScreenReminderWidget)
.settingsHighlight(id: highlightID("Show lock screen reminder"))
Picker("Chip color", selection: $lockScreenReminderChipStyle) {
Picker(String(localized: "Chip color"), selection: $lockScreenReminderChipStyle) {
ForEach(LockScreenReminderChipStyle.allCases) { style in
Text(style.rawValue).tag(style)
Text(style.localizedName).tag(style)
}
}
.pickerStyle(.segmented)
@ -2499,12 +2500,12 @@ struct CalendarSettings: View {
private func statusText(for status: EKAuthorizationStatus) -> String {
switch status {
case .fullAccess, .authorized: return "Full Access"
case .writeOnly: return "Write Only"
case .denied: return "Denied"
case .restricted: return "Restricted"
case .notDetermined: return "Not Determined"
@unknown default: return "Unknown"
case .fullAccess, .authorized: return String(localized:"Full Access")
case .writeOnly: return String(localized:"Write Only")
case .denied: return String(localized:"Denied")
case .restricted: return String(localized:"Restricted")
case .notDetermined: return String(localized:"Not Determined")
@unknown default: return String(localized:"Unknown")
}
}

View file

@ -231,4 +231,13 @@ enum LockScreenReminderChipStyle: String, CaseIterable, Defaults.Serializable, I
case monochrome = "White"
var id: String { rawValue }
var localizedName: String {
switch self {
case .eventColor:
return String(localized: "Event color")
case .monochrome:
return String(localized: "White")
}
}
}

View file

@ -438,18 +438,18 @@ enum MusicSkipBehavior: String, CaseIterable, Identifiable, Defaults.Serializabl
var displayName: String {
switch self {
case .track:
return "Track Skip"
return String(localized: "Track Skip")
case .tenSecond:
return "±10 Seconds"
return String(localized: "±10 Seconds")
}
}
var description: String {
switch self {
case .track:
return "Standard previous/next track controls"
return String(localized: "Standard previous/next track controls")
case .tenSecond:
return "Skip forward or backward by ten seconds"
return String(localized: "Skip forward or backward by ten seconds")
}
}
}
@ -484,9 +484,12 @@ enum ReminderPresentationStyle: String, CaseIterable, Identifiable, Defaults.Ser
var displayName: String {
switch self {
case .ringCountdown: return "Ring"
case .digital: return "Digital"
case .minutes: return "Minutes"
case .ringCountdown:
return String(localized: "Ring")
case .digital:
return String(localized: "Digital")
case .minutes:
return String(localized: "Minutes")
}
}
}