diff --git a/crates/ui-egui/src/i18n/ar.rs b/crates/ui-egui/src/i18n/ar.rs index 651b748f9..a5b8c9ce5 100644 --- a/crates/ui-egui/src/i18n/ar.rs +++ b/crates/ui-egui/src/i18n/ar.rs @@ -22,6 +22,10 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Save a Copy…", "حفظ نسخة…"), ("Revert", "استعادة"), ("Place…", "وضع…"), + ("Place Contact Sheet…", "وضع ورقة مصغّرات…"), + ("Place Contact Sheet", "وضع ورقة مصغّرات"), + ("Place loaded images on new pages, in file order.", "وضع الصور المحمّلة على صفحات جديدة، بترتيب الملفات."), + ("Page margin", "هامش الصفحة"), ("Export PDF…", "تصدير PDF…"), ("Print…", "طباعة…"), ("Print", "طباعة"), diff --git a/crates/ui-egui/src/i18n/cs.rs b/crates/ui-egui/src/i18n/cs.rs index b6459bc36..6b8caa4be 100644 --- a/crates/ui-egui/src/i18n/cs.rs +++ b/crates/ui-egui/src/i18n/cs.rs @@ -25,6 +25,10 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Save a Copy…", "Uložit kopii…"), ("Revert", "Vrátit k uložené verzi"), ("Place…", "Umístit…"), + ("Place Contact Sheet…", "Umístit kontaktní arch…"), + ("Place Contact Sheet", "Umístit kontaktní arch"), + ("Place loaded images on new pages, in file order.", "Umístit načtené obrázky na nové stránky v pořadí souborů."), + ("Page margin", "Okraj stránky"), ("Export PDF…", "Exportovat PDF…"), ("Print…", "Tisk…"), ("Document Setup…", "Nastavení dokumentu…"), diff --git a/crates/ui-egui/src/i18n/hu.rs b/crates/ui-egui/src/i18n/hu.rs index 890959761..b3a32ca3e 100644 --- a/crates/ui-egui/src/i18n/hu.rs +++ b/crates/ui-egui/src/i18n/hu.rs @@ -1223,6 +1223,10 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Place with Import Options", "Elhelyezés importálási beállításokkal"), ("Place with Import Options…", "Elhelyezés importálási beállításokkal…"), ("Place…", "Elhelyezés…"), + ("Place Contact Sheet…", "Kontaktlap elhelyezése…"), + ("Place Contact Sheet", "Kontaktlap elhelyezése"), + ("Place loaded images on new pages, in file order.", "A betöltött képek elhelyezése új oldalakon, fájlsorrendben."), + ("Page margin", "Oldalmargó"), ("Plain", "Egyszerű"), ("Plain Text", "Egyszerű szöveg"), ("Play on Page Load", "Lejátszás az oldal betöltésekor"), diff --git a/crates/ui-egui/src/i18n/it.rs b/crates/ui-egui/src/i18n/it.rs index 70d08085e..183891a57 100644 --- a/crates/ui-egui/src/i18n/it.rs +++ b/crates/ui-egui/src/i18n/it.rs @@ -25,6 +25,10 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Save a Copy…", "Salva una copia…"), ("Revert", "Ripristina"), ("Place…", "Inserisci…"), + ("Place Contact Sheet…", "Inserisci provino…"), + ("Place Contact Sheet", "Inserisci provino"), + ("Place loaded images on new pages, in file order.", "Inserisci le immagini caricate in nuove pagine, nell'ordine dei file."), + ("Page margin", "Margine pagina"), ("Export PDF…", "Esporta PDF…"), ("Print…", "Stampa…"), ("Document Setup…", "Impostazione documento…"), diff --git a/crates/ui-egui/src/i18n/pl.rs b/crates/ui-egui/src/i18n/pl.rs index fcdb3718e..155e5f3eb 100644 --- a/crates/ui-egui/src/i18n/pl.rs +++ b/crates/ui-egui/src/i18n/pl.rs @@ -23,6 +23,10 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Save a Copy…", "Zapisz kopię…"), ("Revert", "Przywróć"), ("Place…", "Umieść…"), + ("Place Contact Sheet…", "Umieść stykówkę…"), + ("Place Contact Sheet", "Umieść stykówkę"), + ("Place loaded images on new pages, in file order.", "Umieść wczytane obrazy na nowych stronach, w kolejności plików."), + ("Page margin", "Margines strony"), ("Export PDF…", "Eksportuj PDF…"), ("Print…", "Drukuj…"), ("Document Setup…", "Ustawienia dokumentu…"), diff --git a/crates/ui-egui/src/i18n/pt_br.rs b/crates/ui-egui/src/i18n/pt_br.rs index 0ef8fa755..f104fd8de 100644 --- a/crates/ui-egui/src/i18n/pt_br.rs +++ b/crates/ui-egui/src/i18n/pt_br.rs @@ -26,6 +26,10 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Save a Copy…", "Salvar uma cópia…"), ("Revert", "Reverter"), ("Place…", "Inserir…"), + ("Place Contact Sheet…", "Inserir folha de contato…"), + ("Place Contact Sheet", "Inserir folha de contato"), + ("Place loaded images on new pages, in file order.", "Inserir as imagens carregadas em novas páginas, na ordem dos arquivos."), + ("Page margin", "Margem da página"), ("Export PDF…", "Exportar PDF…"), ("Print…", "Imprimir…"), ("Print", "Imprimir"), diff --git a/crates/ui-egui/src/i18n/ru.rs b/crates/ui-egui/src/i18n/ru.rs index 8b933fe60..22533a4ff 100644 --- a/crates/ui-egui/src/i18n/ru.rs +++ b/crates/ui-egui/src/i18n/ru.rs @@ -27,6 +27,10 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Save a Copy…", "Сохранить копию…"), ("Revert", "Восстановить сохраненную версию"), ("Place…", "Поместить…"), + ("Place Contact Sheet…", "Поместить контактный лист…"), + ("Place Contact Sheet", "Поместить контактный лист"), + ("Place loaded images on new pages, in file order.", "Поместить загруженные изображения на новые страницы в порядке файлов."), + ("Page margin", "Поле страницы"), ("Export PDF…", "Экспорт в PDF…"), ("Print…", "Печать…"), ("Document Setup…", "Настройка документа…"), diff --git a/crates/ui-egui/src/i18n/table.rs b/crates/ui-egui/src/i18n/table.rs index 60cba865d..e83665438 100644 --- a/crates/ui-egui/src/i18n/table.rs +++ b/crates/ui-egui/src/i18n/table.rs @@ -1190,7 +1190,7 @@ pub(super) const TABLE: &[(&str, [&str; 5])] = &[ ), ("Color Settings", ["Color Settings", "Réglages des couleurs", "Color Settings", "Color Settings", "颜色设置"]), ("Color:", ["Color:", "Couleur :", "Color:", "Color:", "颜色:"]), - ("Columns", ["Columns", "Colonnes", "Columns", "Columns", "栏"]), + ("Columns", ["Columns", "Colonnes", "Columnas", "Columns", "栏"]), ("Composer:", ["Composer:", "Compositeur :", "Composer:", "Composer:", "排版器:"]), ("Copies:", ["Copies:", "Copies :", "Copies:", "Copies:", "份数:"]), ("Count", ["Count", "Compter", "Count", "Count", "数量"]), @@ -1292,7 +1292,7 @@ pub(super) const TABLE: &[(&str, [&str; 5])] = &[ ("Generate QR Code", ["Generate QR Code", "Générer un code QR", "Generate QR Code", "Generate QR Code", "生成二维码"]), ("Go To", ["Go To", "Atteindre", "Go To", "Go To", "转到"]), ("Go to Page", ["Go to Page", "Atteindre la page", "Go to Page", "Go to Page", "转到页面"]), - ("Gutter", ["Gutter", "Gouttière", "Gutter", "Gutter", "栏间距"]), + ("Gutter", ["Gutter", "Gouttière", "Medianil", "Gutter", "栏间距"]), ("Header Rows", ["Header Rows", "Lignes d'en-tête", "Header Rows", "Header Rows", "表头行"]), ("Height", ["Height", "Hauteur", "Height", "Height", "高度"]), ("Height:", ["Height:", "Hauteur :", "Height:", "Height:", "高度:"]), @@ -3723,7 +3723,7 @@ pub(super) const TABLE: &[(&str, [&str; 5])] = &[ ), ("Rotate 180°", ["180° drehen", "Rotation à 180°", "Girar 180°", "180°回転", "旋转 180°"]), ("Rotation Angle", ["Rotation Angle", "Angle de rotation", "Rotation Angle", "Rotation Angle", "旋转角度"]), - ("Rows", ["Rows", "Lignes", "Rows", "Rows", "行数"]), + ("Rows", ["Rows", "Lignes", "Filas", "Rows", "行数"]), ("Run", ["Run", "Exécuter", "Run", "Run", "运行"]), ("Scale X Percentage", ["Scale X Percentage", "Échelle X en pourcentage", "Scale X Percentage", "Scale X Percentage", "水平缩放百分比"]), ("Scale Y Percentage", ["Scale Y Percentage", "Échelle Y en pourcentage", "Scale Y Percentage", "Scale Y Percentage", "垂直缩放百分比"]), diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index b676a0c5f..a10f61438 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -249,6 +249,28 @@ fn arrangement_accessible_name_is_localized_in_every_interface_language() { } } +/// File › Place Contact Sheet… and its dialog read in every interface language, including those +/// whose own catalog is all `tr` looks in. +#[test] +fn contact_sheet_strings_are_translated_in_every_interface_language() { + let strings = [ + "Place Contact Sheet…", + "Place Contact Sheet", + "Place loaded images on new pages, in file order.", + "Columns", + "Rows", + "Gutter", + "Page margin", + ]; + for (code, name) in LANGUAGES.iter().filter(|(code, _)| !code.is_empty()) { + for s in strings { + let text = tr(code, s); + assert!(text != s && !text.trim().is_empty(), "{name}: {s:?} is still English"); + } + } + assert_eq!(["Columns", "Rows", "Gutter"].map(|s| tr("es", s)), ["Columnas", "Filas", "Medianil"]); +} + /// Checks language-specific context precedence and fallback to the plain translation. #[test] fn context_captions_come_from_their_context_or_the_plain_translation() { diff --git a/crates/ui-egui/src/i18n/uk.rs b/crates/ui-egui/src/i18n/uk.rs index 03918520f..f902cd236 100644 --- a/crates/ui-egui/src/i18n/uk.rs +++ b/crates/ui-egui/src/i18n/uk.rs @@ -26,6 +26,10 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Save a Copy…", "Зберегти копію…"), ("Revert", "Повернути збережену версію"), ("Place…", "Розмістити…"), + ("Place Contact Sheet…", "Розмістити аркуш мініатюр…"), + ("Place Contact Sheet", "Розмістити аркуш мініатюр"), + ("Place loaded images on new pages, in file order.", "Розмістити завантажені зображення на нових сторінках у порядку файлів."), + ("Page margin", "Поле сторінки"), ("Export PDF…", "Експортувати PDF…"), ("Print…", "Друк…"), ("Document Setup…", "Параметри документа…"),