Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.
C# audio-converteravaloniabatch-conversionconvertercsharpdocument-converterdocx-to-pdfdotnetdrag-and-dropfile-conversionfile-converterheic-converterhwphwpximage-converterlinuxmacospdf-convertervideo-converterwindows
i18n(pt-PT): cover current print and PDF options
Blackspirits478315c3dd3d
diff --git a/docs/PORTUGUESE-LOCALIZATION.md b/docs/PORTUGUESE-LOCALIZATION.mdindex 1816f4ff..ce640a7d 100644--- a/docs/PORTUGUESE-LOCALIZATION.md+++ b/docs/PORTUGUESE-LOCALIZATION.md@@ -1,14 +1,14 @@# Portuguese localizationPhase 1 adds European Portuguese and refines regional integration with the Brazilian translation already merged-in #322. The current baseline is upstream `4c3a3e1cbedec48c3033c68fd0da161977e7afdf` (23 October 2026).+in #322. The current baseline is upstream `a97a07cd2eea20dbf80f03332d2710b874eb09f9` (23 October 2026).French, Traditional Chinese, Nepali, Thai, Material You, OCR, palette tabs and the other merged upstream changesare retained.Phase 2 has not started.## Coverage and wording-Both Portuguese catalogs contain all **978 English keys**, in English key order: 956 upstream entries,+Both Portuguese catalogs contain all **1,025 English keys**, in English key order: 1,003 upstream entries,18 descriptive engine names and four compact donut labels. Three native macOS strings per variant are additionalto those JSON entries. There are fifteen registered languages. The twelve non-Portuguese translations retainEnglish for the new engine names pending maintainer review; compact labels reuse their existing full translations.@@ -118,6 +118,20 @@ local automated results, headless PNGs and partial real Windows interaction. Itthe historical successful run below must not be treated as validation of the new head. The earlier head remaineda draft. See the current integration report for readiness.+## Final upstream catch-up — 23 October 2026++Merge `614cb4d5` incorporates upstream `a97a07c` without conflicts or rewritten history. The 47 new English+keys cover the spreadsheet print studio, PDF finishing/passwords and update rollback notices. pt-PT translates+all of them; the new upstream pt-BR and other-language values are retained unchanged. The seven earlier Brazilian+count/pointer corrections remain the only changes to existing upstream Brazilian entries.++The new print-studio layout permits translated choices and page-count captions to wrap. Three geometry cases+exercise English and both Portuguese variants at its existing 1,040 px minimum width; the existing PDF-finishing+render cases now include both Portuguese variants. This follows a reproduced pt-BR cut-off without shortening+community wording. Existing Portuguese demonstration scenes do not contain these new controls, so their media+remain valid. App and Setup embed the rebuilt catalogs. The previous integration/test counts below describe+older snapshots; current CI/readiness is reported in the PR checks and the latest native-validation section.+## Current integration and approved final wording — 23 October 2026Merge `47616f7` integrates upstream `4c3a3e1` without rewriting published history. All seventeen conflicts arediff --git a/docs/PORTUGUESE-NATIVE-VALIDATION.md b/docs/PORTUGUESE-NATIVE-VALIDATION.mdindex bc7c7350..9d541339 100644--- a/docs/PORTUGUESE-NATIVE-VALIDATION.md+++ b/docs/PORTUGUESE-NATIVE-VALIDATION.md@@ -8,6 +8,45 @@ CI completed on 22 October 2026; report consolidated on 23 October. Only Blackspall nine jobs passed. This closes the previously pending automated CI and full-formatter checks. It does notcertify an interactive installation, OS-language session, permission dialog or screen reader.+## Final upstream catch-up — 23 October 2026++Merge `614cb4d5` incorporates upstream `a97a07cd2eea20dbf80f03332d2710b874eb09f9`. All 47 newly added+messages are translated in pt-PT. Each of the fifteen catalogs now has 1,025 keys; both Portuguese catalogs+preserve English key order, format-item multiplicity, line breaks and NFC. The seven earlier targeted changes+remain the only edits to existing upstream pt-BR values. Other upstream catalog values/layouts are retained.++App/Setup were rebuilt from the faithful temporary source copy: zero errors, five existing obsolete-API warnings+in the final incremental solution build (the first integration build reported fourteen upstream warnings).+A 179-case App selection passed 176 localization/PDF/preset cases and exposed a pt-BR print-studio caption+cut-off. A preceding measurement had also exposed its workbook choice. Neither community translation was+shortened: the four choice templates and page-width/height captions now wrap. After rebuilding, all three+print-studio geometry cases passed in English, pt-PT and pt-BR at the existing 1,040 px minimum width. These+three final cases replace the earlier studio results and are not added twice. No remaining selected failure+was left unresolved. The fixture's initial double-dispose cleanup was corrected without changing production+lifecycle behavior or weakening assertions. Fresh headless studio PNGs were inspected separately from native+interaction; these tests do not certify LibreOffice export or PDF preview correctness.++The earlier 373-case App/Setup/Core/CLI/Platform results below describe the preceding integration. The final+catch-up's complete native platform matrix is a current CI check, not inferred from those older passes.+Run `39997779173` tested `fd91193` before this catch-up and must not certify the final head. Current run status+and submission readiness are recorded in the PR checks/body so a report-only push does not restart the matrix.+Existing native limitations below remain explicit follow-ups. Themes and Phase 2 have not started.++Commands used in the same verified temporary copy (with eighteen pinned Noto fonts):++```powershell+dotnet restore Filee.slnx --disable-parallel+dotnet build Filee.slnx -m:1 -c Release --no-restore -p:UseSharedCompilation=false+$env:FILEE_LOCALIZATION_SCREENSHOTS='1'+dotnet test tests/Filee.App.Tests -c Release --no-build --no-restore --filter 'FullyQualifiedName~Localization|FullyQualifiedName~Translated_print_settings_fit_at_the_minimum_window_width|FullyQualifiedName~Preset_editor_shows_and_saves_watermark_page_numbers_and_password|FullyQualifiedName~Translated_choices_fit_in_the_preset_dialog'+# After the wrapping correction and rebuild: all three affected geometry cases pass.+dotnet test tests/Filee.App.Tests -c Release --no-build --no-restore --filter 'FullyQualifiedName~Translated_print_settings_fit_at_the_minimum_window_width'+dotnet format Filee.slnx --verify-no-changes --no-restore --severity warn --include tests/Filee.App.Tests/SpreadsheetPrintStudioTests.cs tests/Filee.App.Tests/RenderTests.cs+git diff --check+```++Local logs/TRX/PNG evidence is retained in ignored `artifacts/portuguese-phase1/submission/`.+## CLI argument-description clarification — 23 October 2026After the contributor clarified the earlier wording decision, pt-PT's `watch.cli_hint` is nowdiff --git a/docs/PORTUGUESE-REVIEW-FOLLOWUP.md b/docs/PORTUGUESE-REVIEW-FOLLOWUP.mdindex 9606933a..42c53858 100644--- a/docs/PORTUGUESE-REVIEW-FOLLOWUP.md+++ b/docs/PORTUGUESE-REVIEW-FOLLOWUP.md@@ -2,7 +2,20 @@The independent review examined b694dad, based on Filee 2.0.0 at 799e394. The first follow-up integrated upstreama121a3c9e3254918f8b171bb7f675b0bdc532244 on 22 October. The current integration is-4c3a3e1cbedec48c3033c68fd0da161977e7afdf, verified on 23 October 2026. Only Blackspirits/Filee is changed.+a97a07cd2eea20dbf80f03332d2710b874eb09f9, verified on 23 October 2026. Only Blackspirits/Filee is changed.++## Final upstream catch-up — 23 October 2026++Merge `614cb4d5` incorporates the next 48 upstream commits, including spreadsheet printing, PDF finishing and+update rollback handling. All 47 new keys are translated in pt-PT; the fifteen catalogs now each contain 1,025+keys. Existing Portuguese key order, format items, line breaks and NFC are preserved. New Brazilian and other+community translations remain upstream values; the seven earlier targeted Brazilian corrections are unchanged.++A minimum-width print-studio capture reproduced two pt-BR text overflows: a workbook choice and the automatic+page-height caption. Choices and page-width/height captions now wrap; geometry cases retain English and both+Portuguese variants. The existing PDF-finishing fixture also runs for pt-PT/pt-BR. A fixture cleanup error during+development was corrected by retaining the window's ownership of its view model; no production lifecycle or+assertion was weakened. The native-validation report separates these current results from historical snapshots.## Findings and responsesdiff --git a/src/Filee.App/Assets/i18n/pt-PT.json b/src/Filee.App/Assets/i18n/pt-PT.jsonindex fd8acb65..43e4e5fe 100644--- a/src/Filee.App/Assets/i18n/pt-PT.json+++ b/src/Filee.App/Assets/i18n/pt-PT.json@@ -98,6 +98,7 @@"error.needs_shaping": "Este sistema de escrita precisa do LibreOffice para ser convertido corretamente. Instala-o em Definições → Motores","error.runtime_missing": "Um componente de execução do Microsoft Visual C++ necessário a este motor está em falta ou desatualizado. Atualiza ou reinstala o Filee, ou instala o Microsoft Visual C++ Redistributable (x64)","error.conversion_failed": "O motor comunicou um erro",+ "error.pdf_password_gone": "A palavra-passe do PDF da predefinição não é guardada no histórico, e a predefinição já não tem uma. Converte os ficheiros novamente com uma predefinição que tenha a palavra-passe.","error.web_download_failed": "Não foi possível descarregar o ficheiro","error.web_page": "O link abre uma página Web, não um ficheiro. O Filee não consegue descarregar ficheiros que exigem início de sessão: guarda primeiro o ficheiro pelo navegador","error.web_too_large": "O ficheiro tem mais de 2 GB",@@ -356,6 +357,8 @@"update.installing": "O instalador está em execução. O Filee volta a abrir quando terminar.","update.failed": "Não foi possível atualizar automaticamente. Descarrega a nova versão em filee.sh.","update.failed_alert": "Não foi possível descarregar a atualização.\nClica em OK para abrir filee.sh e descarregar a nova versão.",+ "update.rolled_back_alert": "Não foi possível instalar a atualização, por isso o Filee manteve a versão que tinhas.\nPrime OK para abrir filee.sh e descarregar a nova versão.",+ "update.rolled_back_log": "Os detalhes estão no registo: {0}","update.cancelled": "Atualização cancelada. Clica novamente em Atualizar para a instalar.","update.level.Required": "Atualização necessária","update.level.Recommended": "Atualização recomendada",@@ -589,6 +592,11 @@"presets.ocr_language": "Idioma do texto","presets.ocr_language_size": "Transferência de {0}","presets.pdf_keep_metadata": "Manter metadados de páginas e imagens (XMP)",+ "presets.watermark": "Marca de água",+ "presets.watermark_hint": "Por exemplo, RASCUNHO",+ "presets.pdf_password": "Palavra-passe de abertura",+ "presets.pdf_password_hint": "Deixa vazio para não usar. É guardada com a predefinição, por isso usa-a apenas para este tipo de ficheiro. O formato PDF/A não admite palavra-passe; esta opção fica desativada quando o selecionas.",+ "presets.page_numbers": "Números de página (1 / 5 no rodapé)","presets.combine_pages_hint": "Coloca todas as páginas umas por baixo das outras numa só imagem.\nOs resultados muito longos são reduzidos ao limite do formato (JPG 65 500 px, WebP 16 383 px).","presets.combine_pages": "Empilhar as páginas numa imagem longa (ao converter um PDF)","presets.trim_page_margins": "Recortar o espaço em branco acima e abaixo de cada página",@@ -978,6 +986,46 @@"watch.status_error": "Não é possível monitorizar esta pasta: {0}","watch.cli_hint": "Também na linha de comandos: filee watch <pasta> --to <formato>",+ "preset.sheet_studio": "PDF + Editar",+ "sheet_studio.title": "Estúdio de impressão",+ "sheet_studio.sheets": "Folhas e ordem de saída",+ "sheet_studio.page_setup": "Configuração da página",+ "sheet_studio.print_area": "Área de impressão",+ "sheet_studio.use_content": "Usar conteúdo",+ "sheet_studio.paper": "Papel",+ "sheet_studio.orientation": "Orientação",+ "sheet_studio.scaling": "Escala",+ "sheet_studio.percent": "Percentagem",+ "sheet_studio.pages_wide": "Páginas em largura",+ "sheet_studio.pages_tall": "Páginas em altura (0 = auto)",+ "sheet_studio.margins": "Margens (superior, inferior, esquerda, direita)",+ "sheet_studio.margin_top": "Superior",+ "sheet_studio.margin_bottom": "Inferior",+ "sheet_studio.margin_left": "Esquerda",+ "sheet_studio.margin_right": "Direita",+ "sheet_studio.page_order": "Ordem das páginas",+ "sheet_studio.include_hidden": "Incluir linhas e colunas ocultas",+ "sheet_studio.keep_breaks": "Manter quebras de página manuais",+ "sheet_studio.reset_sheet": "Repor esta folha",+ "sheet_studio.rendering": "A gerar a pré-visualização exata do PDF…",+ "sheet_studio.export_pdf": "Exportar PDF",+ "sheet_studio.invalid_range": "Introduz um intervalo válido, por exemplo, A1:S52.",+ "sheet_studio.exporting": "A gerar e combinar as folhas…",+ "sheet_studio.exported": "Exportado: {0}",+ "sheet_studio.page_count": "Páginas: {0} · a pré-visualização corresponde à exportação",+ "sheet_studio.from_workbook": "Do livro",+ "sheet_studio.portrait": "Vertical",+ "sheet_studio.landscape": "Horizontal",+ "sheet_studio.fit_pages": "Ajustar às páginas",+ "sheet_studio.exact_scale": "Escala exata",+ "sheet_studio.down_over": "Para baixo e depois para a direita",+ "sheet_studio.over_down": "Para a direita e depois para baixo",+ "sheet_studio.warning_scale": "O livro pede uma escala de apenas {0}%. Isto costuma tornar a tabela demasiado pequena.",+ "sheet_studio.warning_wide": "O conteúdo é muito largo e não tem área de impressão. Seleciona «Usar conteúdo» e escolhe o número de páginas em largura.",+ "sheet_studio.apply_fix": "Aplicar disposição sugerida",+ "sheet_studio.add_region": "+ Adicionar outra região",+ "sheet_studio.region_name": "{0} · região {1}",+"whats_new.title": "Novidades do Filee {0}","whats_new.previous": "Anterior","whats_new.next": "Seguinte",diff --git a/src/Filee.App/Views/SpreadsheetPrintStudioWindow.axaml b/src/Filee.App/Views/SpreadsheetPrintStudioWindow.axamlindex 9b3204c0..84f9b258 100644--- a/src/Filee.App/Views/SpreadsheetPrintStudioWindow.axaml+++ b/src/Filee.App/Views/SpreadsheetPrintStudioWindow.axaml@@ -113,14 +113,14 @@<TextBlock Text="{DynamicResource sheet_studio.paper}" /><ComboBox ItemsSource="{Binding Papers}" SelectedValue="{Binding SelectedSheet.Paper}" SelectedValueBinding="{Binding Value}"AutomationProperties.Name="{DynamicResource sheet_studio.paper}">- <ComboBox.ItemTemplate><DataTemplate><TextBlock Text="{Binding Label}" /></DataTemplate></ComboBox.ItemTemplate>+ <ComboBox.ItemTemplate><DataTemplate><TextBlock Text="{Binding Label}" TextWrapping="Wrap" /></DataTemplate></ComboBox.ItemTemplate></ComboBox></StackPanel><StackPanel Grid.Column="1" Spacing="5"><TextBlock Text="{DynamicResource sheet_studio.orientation}" /><ComboBox ItemsSource="{Binding Orientations}" SelectedValue="{Binding SelectedSheet.Orientation}" SelectedValueBinding="{Binding Value}"AutomationProperties.Name="{DynamicResource sheet_studio.orientation}">- <ComboBox.ItemTemplate><DataTemplate><TextBlock Text="{Binding Label}" /></DataTemplate></ComboBox.ItemTemplate>+ <ComboBox.ItemTemplate><DataTemplate><TextBlock Text="{Binding Label}" TextWrapping="Wrap" /></DataTemplate></ComboBox.ItemTemplate></ComboBox></StackPanel></Grid>@@ -128,7 +128,7 @@<TextBlock Text="{DynamicResource sheet_studio.scaling}" /><ComboBox ItemsSource="{Binding ScaleModes}" SelectedValue="{Binding SelectedSheet.ScaleMode}" SelectedValueBinding="{Binding Value}"AutomationProperties.Name="{DynamicResource sheet_studio.scaling}">- <ComboBox.ItemTemplate><DataTemplate><TextBlock Text="{Binding Label}" /></DataTemplate></ComboBox.ItemTemplate>+ <ComboBox.ItemTemplate><DataTemplate><TextBlock Text="{Binding Label}" TextWrapping="Wrap" /></DataTemplate></ComboBox.ItemTemplate></ComboBox><Grid ColumnDefinitions="*,*" RowDefinitions="Auto,Auto" ColumnSpacing="8" RowSpacing="8"><StackPanel Grid.Row="0" Grid.ColumnSpan="2" Spacing="4">@@ -137,12 +137,12 @@AutomationProperties.Name="{DynamicResource sheet_studio.percent}" /></StackPanel><StackPanel Grid.Row="1" Grid.Column="0" Spacing="4">- <TextBlock Classes="caption" Text="{DynamicResource sheet_studio.pages_wide}" />+ <TextBlock Classes="caption" Text="{DynamicResource sheet_studio.pages_wide}" TextWrapping="Wrap" /><NumericUpDown Minimum="1" Maximum="100" Value="{Binding SelectedSheet.FitWidth}"AutomationProperties.Name="{DynamicResource sheet_studio.pages_wide}" /></StackPanel><StackPanel Grid.Row="1" Grid.Column="1" Spacing="4">- <TextBlock Classes="caption" Text="{DynamicResource sheet_studio.pages_tall}" />+ <TextBlock Classes="caption" Text="{DynamicResource sheet_studio.pages_tall}" TextWrapping="Wrap" /><NumericUpDown Minimum="0" Maximum="100" Value="{Binding SelectedSheet.FitHeight}"AutomationProperties.Name="{DynamicResource sheet_studio.pages_tall}" /></StackPanel>@@ -175,7 +175,7 @@<TextBlock Text="{DynamicResource sheet_studio.page_order}" /><ComboBox ItemsSource="{Binding PageOrders}" SelectedValue="{Binding SelectedSheet.Order}" SelectedValueBinding="{Binding Value}"AutomationProperties.Name="{DynamicResource sheet_studio.page_order}">- <ComboBox.ItemTemplate><DataTemplate><TextBlock Text="{Binding Label}" /></DataTemplate></ComboBox.ItemTemplate>+ <ComboBox.ItemTemplate><DataTemplate><TextBlock Text="{Binding Label}" TextWrapping="Wrap" /></DataTemplate></ComboBox.ItemTemplate></ComboBox><CheckBox Content="{DynamicResource sheet_studio.include_hidden}" IsChecked="{Binding SelectedSheet.IncludeHidden}" /><CheckBox Content="{DynamicResource sheet_studio.keep_breaks}" IsChecked="{Binding SelectedSheet.KeepManualBreaks}" />diff --git a/tests/Filee.App.Tests/RenderTests.cs b/tests/Filee.App.Tests/RenderTests.csindex 9fe24848..96ca6163 100644--- a/tests/Filee.App.Tests/RenderTests.cs+++ b/tests/Filee.App.Tests/RenderTests.cs@@ -1184,6 +1184,8 @@ public class RenderTests[AvaloniaTheory][InlineData("en")][InlineData("ko")]+ [InlineData("pt-PT")]+ [InlineData("pt-BR")]public void Preset_editor_shows_and_saves_watermark_page_numbers_and_password(string language){TestServices.EnsureInitialized(language);diff --git a/tests/Filee.App.Tests/SpreadsheetPrintStudioTests.cs b/tests/Filee.App.Tests/SpreadsheetPrintStudioTests.csindex b9e20921..0709e0c6 100644--- a/tests/Filee.App.Tests/SpreadsheetPrintStudioTests.cs+++ b/tests/Filee.App.Tests/SpreadsheetPrintStudioTests.cs@@ -1,8 +1,11 @@using System.IO.Compression;using System.Text;+using Avalonia.Controls;using Avalonia.Headless.XUnit;+using Avalonia.VisualTree;using Filee.App.Services;using Filee.App.ViewModels;+using Filee.App.Views;using Filee.Core.Conversion;using Filee.Core.Localization;using Filee.Core.Settings;@@ -11,6 +14,46 @@ namespace Filee.App.Tests;public class SpreadsheetPrintStudioTests{+ [AvaloniaTheory]+ [InlineData("en")]+ [InlineData("pt-PT")]+ [InlineData("pt-BR")]+ public async Task Translated_print_settings_fit_at_the_minimum_window_width(string language)+ {+ TestServices.EnsureInitialized(language);+ var folder = Directory.CreateTempSubdirectory("filee-studio-layout-").FullName;+ SpreadsheetPrintStudioWindow? window = null;+ SpreadsheetPrintStudioViewModel? vm = null;+ try+ {+ var source = Path.Combine(folder, "sample.xlsx");+ WriteWorkbook(source);+ vm = new SpreadsheetPrintStudioViewModel(source, AppHost.Get<SpreadsheetPrintService>(),+ AppHost.Get<ILocalizer>(), AppHost.Get<UserDataStore>());+ await vm.Initialization;+ Assert.Single(vm.Sheets);+ vm.SelectedSheet!.Order = vm.PageOrders.Last().Value;+ window = new SpreadsheetPrintStudioWindow { DataContext = vm, Width = 1040, Height = 860 };+ window.Show();+ RenderTests.Pump();+ if (Environment.GetEnvironmentVariable("FILEE_LOCALIZATION_SCREENSHOTS") == "1")+ RenderTests.Save(window, $"spreadsheet-studio-{language}-1040.png");+ var labels = window.GetVisualDescendants().OfType<TextBlock>()+ .Where(text => text.IsEffectivelyVisible && !string.IsNullOrWhiteSpace(text.Text));+ Assert.NotEmpty(labels);+ var clipped = labels.Where(text => text.TextLayout.Width > text.Bounds.Width + 1)+ .Select(text => $"'{text.Text}' ({text.TextLayout.Width} > {text.Bounds.Width})").ToArray();+ Assert.True(clipped.Length == 0, $"{language}: clipped text: {string.Join("; ", clipped)}");+ }+ finally+ {+ // The window owns its view model and disposes it when closed.+ if (window is not null) window.Close();+ else vm?.Dispose();+ try { Directory.Delete(folder, recursive: true); } catch (IOException) { }+ }+ }+[AvaloniaFact]public void Multiple_workbooks_keep_independent_studio_windows(){