From acfa94987976acec7718ad7526997d70ae4c8d3d Mon Sep 17 00:00:00 2001 From: Felipe Giacomini Cocco Date: Thu, 5 Feb 2026 15:02:05 -0300 Subject: [PATCH] Fix strings detections and translates the entire "Notes" section --- DynamicIsland/Localizable.xcstrings | 62 ++++++++++++++++++- .../components/Settings/SettingsView.swift | 12 ++-- 2 files changed, 67 insertions(+), 7 deletions(-) diff --git a/DynamicIsland/Localizable.xcstrings b/DynamicIsland/Localizable.xcstrings index 784872f..99be532 100644 --- a/DynamicIsland/Localizable.xcstrings +++ b/DynamicIsland/Localizable.xcstrings @@ -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." } } } diff --git a/DynamicIsland/components/Settings/SettingsView.swift b/DynamicIsland/components/Settings/SettingsView.swift index f7c1c36..b9ee05b 100644 --- a/DynamicIsland/components/Settings/SettingsView.swift +++ b/DynamicIsland/components/Settings/SettingsView.swift @@ -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")