mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 07:52:42 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -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<usize> = [0, 1, 2, 4, 5, 11, 12, 14, 21, 22, 25, 101, 112, 122].into_iter().map(plural_polish).collect();
|
||||
|
||||
Reference in New Issue
Block a user