From 7337434733006c39028d705b3fcfaf92b27bc645 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sun, 15 Nov 2026 00:19:10 -0800 Subject: [PATCH] i18n: Polish translates five dimension errors that showed in English The Polish catalog had no message row for five errors of the dimension commands (original artwork, locked or hidden, mode and source, offset, point), so each one showed in English. A test checks that each message is translated. --- crates/ui-egui/src/i18n/pl.tsv | 5 +++++ crates/ui-egui/src/i18n/tests.rs | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index 93969d2bc3..dea86873ba 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -6084,18 +6084,23 @@ mark-style Japanese Japońskie Precision: Dokładność: Update Dimensions Aktualizuj wymiary @msg Angles require two straight segments Kąty wymagają dwóch prostych odcinków +@msg Choose original artwork, not a dimension's generated paths Wybierz oryginalną kompozycję, a nie ścieżki wygenerowane przez wymiar @msg Choose two different points Wybierz dwa różne punkty @msg Choose two non-parallel straight segments Wybierz dwa nierównoległe proste odcinki @msg Choose two nonzero angle arms Wybierz dwa niezerowe ramiona kąta +@msg Dimension is locked or hidden Wymiar jest zablokowany lub ukryty +@msg Dimension mode does not match its source Tryb wymiaru nie odpowiada jego źródłu @msg Dimension point is outside the canvas Punkt wymiaru leży poza obszarem roboczym @msg Dimension size is outside its supported range Rozmiar wymiaru jest poza obsługiwanym zakresem @msg First measured segment no longer exists Pierwszy mierzony odcinek już nie istnieje @msg Invalid dimension distance Nieprawidłowa odległość wymiaru @msg Invalid dimension font name Nieprawidłowa nazwa czcionki wymiaru +@msg Invalid dimension offset Nieprawidłowe odsunięcie wymiaru @msg Invalid drawing scale Nieprawidłowa skala rysunku @msg Invalid real scale Nieprawidłowa skala rzeczywista @msg Measured anchor no longer exists Mierzony punkt kontrolny już nie istnieje @msg Invalid measured point Nieprawidłowy mierzony punkt +@msg Invalid point Nieprawidłowy punkt @msg Measured segment no longer exists Mierzony odcinek już nie istnieje @msg Non-finite dimension Wymiar nie jest liczbą skończoną @msg Only linear dimensions are horizontal or vertical Tylko wymiary liniowe są poziome lub pionowe diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index 44db5d3dfd..0a58604f58 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -5011,6 +5011,20 @@ fn pl() -> Lang { Lang::from_code("pl").expect("pl registered") } +/// Polish translates the dimension commands' errors. +#[test] +fn polish_translates_dimension_messages() { + for english in [ + "Choose original artwork, not a dimension's generated paths", + "Dimension is locked or hidden", + "Dimension mode does not match its source", + "Invalid dimension offset", + "Invalid point", + ] { + assert_ne!(message(pl(), english), english); + } +} + #[test] fn polish_plurals_have_three_forms() { let forms: Vec = [0, 1, 2, 4, 5, 11, 12, 14, 21, 22, 25, 101, 112, 122].into_iter().map(plural_polish).collect();