Fix strings detections and translates the entire "Notes" section

This commit is contained in:
Felipe Giacomini Cocco 2026-02-05 15:02:05 -03:00
commit acfa949879
2 changed files with 67 additions and 7 deletions

View file

@ -9189,6 +9189,16 @@
}
}
},
"Enable Color Filtering" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Habilitar Filtragem por Cores"
}
}
}
},
"Enable Color Picker" : {
"localizations" : {
"pt-BR" : {
@ -9225,6 +9235,16 @@
}
}
},
"Enable Create from Clipboard" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Habilitar Criar a partir da Área de Transferência"
}
}
}
},
"Enable Custom OSD" : {
"localizations" : {
"pt-BR" : {
@ -9593,6 +9613,36 @@
}
}
},
"Enable Note Pinning" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Ativar Fixação de Notas"
}
}
}
},
"Enable Note Search" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Ativar Pesquisa de Notas"
}
}
}
},
"Enable Notes" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Ativar Notas"
}
}
}
},
"Enable reminder live activity" : {
"localizations" : {
"pt-BR" : {
@ -20865,6 +20915,16 @@
}
}
},
"Show Character Count" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Mostrar Contagem de Caracteres"
}
}
}
},
"Show charging percentage" : {
"localizations" : {
"pt-BR" : {
@ -25081,7 +25141,7 @@
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Quando ativada, a guia Estatísticas exibirá gráficos de desempenho do sistema em tempo real. Esse recurso requer permissões do sistema e pode usar bateria adicional."
"value" : "Quando ativado, a guia Estatísticas exibirá gráficos de desempenho do sistema em tempo real. Esse recurso requer permissões do sistema e pode usar bateria adicional."
}
}
}

View file

@ -6766,13 +6766,13 @@ struct NotesSettingsView: View {
var body: some View {
Form {
Section {
Defaults.Toggle("Enable Notes", key: .enableNotes)
Defaults.Toggle(String(localized: "Enable Notes"), key: .enableNotes)
if Defaults[.enableNotes] {
Defaults.Toggle("Enable Note Pinning", key: .enableNotePinning)
Defaults.Toggle("Enable Note Search", key: .enableNoteSearch)
Defaults.Toggle("Enable Color Filtering", key: .enableNoteColorFiltering)
Defaults.Toggle("Enable Create from Clipboard", key: .enableCreateFromClipboard)
Defaults.Toggle("Show Character Count", key: .enableNoteCharCount)
Defaults.Toggle(String(localized: "Enable Note Pinning"), key: .enableNotePinning)
Defaults.Toggle(String(localized: "Enable Note Search"), key: .enableNoteSearch)
Defaults.Toggle(String(localized: "Enable Color Filtering"), key: .enableNoteColorFiltering)
Defaults.Toggle(String(localized: "Enable Create from Clipboard"), key: .enableCreateFromClipboard)
Defaults.Toggle(String(localized: "Show Character Count"), key: .enableNoteCharCount)
}
} header: {
Text("General")