Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

Integration: #1514 summary wording

aionggc77b593f8053
diff --git a/crates/ui-egui/src/i18n/ar.rs b/crates/ui-egui/src/i18n/ar.rs
index b79ea87a1..f823f4c53 100644
--- a/crates/ui-egui/src/i18n/ar.rs
+++ b/crates/ui-egui/src/i18n/ar.rs
@@ -82,13 +82,13 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Substituted", "مستبدل"),
("Modified", "معدل"),
("Missing", "مفقود"),
- ("Colors and Inks: {process} Process Inks; {spot} Spot Inks", "الألوان والأحبار: {process} أحبار معالجة؛ {spot} أحبار مخصصة"),
- ("Images: {embedded} Embedded", "الصور: {embedded} مضمنة"),
+ ("Colors and Inks: {process} process, {spot} spot", "الألوان والأحبار: {process} أحبار معالجة؛ {spot} أحبار مخصصة"),
+ ("Embedded images: {embedded}", "الصور: {embedded} مضمنة"),
(
- "Links and Images: {found} Links Found; {modified} Modified, {missing} Missing",
+ "Links and Images: {found} linked, {modified} changed, {missing} not found",
"الروابط والصور: {found} روابط؛ {modified} معدلة، {missing} مفقودة",
),
- ("Fonts: {used} Fonts Used, {missing} Missing", "الخطوط: {used} مستخدمة، {missing} مفقودة"),
+ ("Fonts: {used} in use, {missing} unavailable", "الخطوط: {used} مستخدمة، {missing} مفقودة"),
("Instructions:", "التعليمات:"),
("Email:", "البريد الإلكتروني:"),
("Fax:", "الفاكس:"),
diff --git a/crates/ui-egui/src/i18n/cs.rs b/crates/ui-egui/src/i18n/cs.rs
index 41811c755..5feea5db4 100644
--- a/crates/ui-egui/src/i18n/cs.rs
+++ b/crates/ui-egui/src/i18n/cs.rs
@@ -88,13 +88,13 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Substituted", "Nahrazeno"),
("Modified", "Změněno"),
("Missing", "Chybí"),
- ("Colors and Inks: {process} Process Inks; {spot} Spot Inks", "Barvy a inkousty: procesní {process}; přímé {spot}"),
- ("Images: {embedded} Embedded", "Obrazy: vloženo {embedded}"),
+ ("Colors and Inks: {process} process, {spot} spot", "Barvy a inkousty: procesní {process}; přímé {spot}"),
+ ("Embedded images: {embedded}", "Obrazy: vloženo {embedded}"),
(
- "Links and Images: {found} Links Found; {modified} Modified, {missing} Missing",
+ "Links and Images: {found} linked, {modified} changed, {missing} not found",
"Odkazy a obrazy: nalezeno {found}; změněno {modified}, chybí {missing}",
),
- ("Fonts: {used} Fonts Used, {missing} Missing", "Písma: použito {used}, chybí {missing}"),
+ ("Fonts: {used} in use, {missing} unavailable", "Písma: použito {used}, chybí {missing}"),
("Instructions:", "Pokyny:"),
("Fax:", "Fax:"),
("Address:", "Adresa:"),
diff --git a/crates/ui-egui/src/i18n/it.rs b/crates/ui-egui/src/i18n/it.rs
index 8c4f38912..8d97ee17d 100644
--- a/crates/ui-egui/src/i18n/it.rs
+++ b/crates/ui-egui/src/i18n/it.rs
@@ -85,13 +85,13 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Substituted", "Sostituito"),
("Modified", "Modificato"),
("Missing", "Mancante"),
- ("Colors and Inks: {process} Process Inks; {spot} Spot Inks", "Colori e inchiostri: {process} quadricromia; {spot} tinte piatte"),
- ("Images: {embedded} Embedded", "Immagini: {embedded} incorporate"),
+ ("Colors and Inks: {process} process, {spot} spot", "Colori e inchiostri: {process} quadricromia; {spot} tinte piatte"),
+ ("Embedded images: {embedded}", "Immagini: {embedded} incorporate"),
(
- "Links and Images: {found} Links Found; {modified} Modified, {missing} Missing",
+ "Links and Images: {found} linked, {modified} changed, {missing} not found",
"Collegamenti e immagini: {found} trovati; {modified} modificati, {missing} mancanti",
),
- ("Fonts: {used} Fonts Used, {missing} Missing", "Font: {used} utilizzati, {missing} mancanti"),
+ ("Fonts: {used} in use, {missing} unavailable", "Font: {used} utilizzati, {missing} mancanti"),
("Instructions:", "Istruzioni:"),
("Email:", "E-mail:"),
("Fax:", "Fax:"),
diff --git a/crates/ui-egui/src/i18n/ka.rs b/crates/ui-egui/src/i18n/ka.rs
index bdf324954..4cf1e66ff 100644
--- a/crates/ui-egui/src/i18n/ka.rs
+++ b/crates/ui-egui/src/i18n/ka.rs
@@ -80,13 +80,13 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Substituted", "ჩანაცვლებული"),
("Modified", "შეცვლილი"),
("Missing", "აკლია"),
- ("Colors and Inks: {process} Process Inks; {spot} Spot Inks", "ფერები და მელნები: {process} პროცესის; {spot} ლაქის"),
- ("Images: {embedded} Embedded", "გამოსახულებები: ჩაშენებულია {embedded}"),
+ ("Colors and Inks: {process} process, {spot} spot", "ფერები და მელნები: {process} პროცესის; {spot} ლაქის"),
+ ("Embedded images: {embedded}", "გამოსახულებები: ჩაშენებულია {embedded}"),
(
- "Links and Images: {found} Links Found; {modified} Modified, {missing} Missing",
+ "Links and Images: {found} linked, {modified} changed, {missing} not found",
"ბმულები და გამოსახულებები: ნაპოვნია {found}; შეცვლილია {modified}, აკლია {missing}",
),
- ("Fonts: {used} Fonts Used, {missing} Missing", "შრიფტები: გამოყენებულია {used}, აკლია {missing}"),
+ ("Fonts: {used} in use, {missing} unavailable", "შრიფტები: გამოყენებულია {used}, აკლია {missing}"),
("Instructions:", "ინსტრუქციები:"),
("Fax:", "ფაქსი:"),
("Address:", "მისამართი:"),
diff --git a/crates/ui-egui/src/i18n/pl.rs b/crates/ui-egui/src/i18n/pl.rs
index 3943daffb..0d2ea135b 100644
--- a/crates/ui-egui/src/i18n/pl.rs
+++ b/crates/ui-egui/src/i18n/pl.rs
@@ -87,13 +87,13 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Substituted", "Zastąpiona"),
("Modified", "Zmieniony"),
("Missing", "Brak"),
- ("Colors and Inks: {process} Process Inks; {spot} Spot Inks", "Kolory i farby: procesowe {process}; dodatkowe {spot}"),
- ("Images: {embedded} Embedded", "Obrazy: osadzone {embedded}"),
+ ("Colors and Inks: {process} process, {spot} spot", "Kolory i farby: procesowe {process}; dodatkowe {spot}"),
+ ("Embedded images: {embedded}", "Obrazy: osadzone {embedded}"),
(
- "Links and Images: {found} Links Found; {modified} Modified, {missing} Missing",
+ "Links and Images: {found} linked, {modified} changed, {missing} not found",
"Łącza i obrazy: znaleziono {found}; zmienione {modified}, brakujące {missing}",
),
- ("Fonts: {used} Fonts Used, {missing} Missing", "Czcionki: użyte {used}, brakujące {missing}"),
+ ("Fonts: {used} in use, {missing} unavailable", "Czcionki: użyte {used}, brakujące {missing}"),
("Instructions:", "Instrukcje:"),
("Email:", "E-mail:"),
("Fax:", "Faks:"),
diff --git a/crates/ui-egui/src/i18n/pt_br.rs b/crates/ui-egui/src/i18n/pt_br.rs
index f87c8310d..df588c3a7 100644
--- a/crates/ui-egui/src/i18n/pt_br.rs
+++ b/crates/ui-egui/src/i18n/pt_br.rs
@@ -88,13 +88,13 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Substituted", "Substituída"),
("Modified", "Modificado"),
("Missing", "Ausente"),
- ("Colors and Inks: {process} Process Inks; {spot} Spot Inks", "Cores e tintas: {process} de escala; {spot} especiais"),
- ("Images: {embedded} Embedded", "Imagens: {embedded} incorporadas"),
+ ("Colors and Inks: {process} process, {spot} spot", "Cores e tintas: {process} de escala; {spot} especiais"),
+ ("Embedded images: {embedded}", "Imagens: {embedded} incorporadas"),
(
- "Links and Images: {found} Links Found; {modified} Modified, {missing} Missing",
+ "Links and Images: {found} linked, {modified} changed, {missing} not found",
"Vínculos e imagens: {found} encontrados; {modified} modificados, {missing} ausentes",
),
- ("Fonts: {used} Fonts Used, {missing} Missing", "Fontes: {used} usadas, {missing} ausentes"),
+ ("Fonts: {used} in use, {missing} unavailable", "Fontes: {used} usadas, {missing} ausentes"),
("Instructions:", "Instruções:"),
("Email:", "E-mail:"),
("Fax:", "Fax:"),
diff --git a/crates/ui-egui/src/i18n/ru.rs b/crates/ui-egui/src/i18n/ru.rs
index f6a201665..216e07f14 100644
--- a/crates/ui-egui/src/i18n/ru.rs
+++ b/crates/ui-egui/src/i18n/ru.rs
@@ -91,13 +91,13 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Substituted", "Заменен"),
("Modified", "Изменено"),
("Missing", "Отсутствует"),
- ("Colors and Inks: {process} Process Inks; {spot} Spot Inks", "Цвета и краски: триадных {process}; плашечных {spot}"),
- ("Images: {embedded} Embedded", "Изображения: внедрено {embedded}"),
+ ("Colors and Inks: {process} process, {spot} spot", "Цвета и краски: триадных {process}; плашечных {spot}"),
+ ("Embedded images: {embedded}", "Изображения: внедрено {embedded}"),
(
- "Links and Images: {found} Links Found; {modified} Modified, {missing} Missing",
+ "Links and Images: {found} linked, {modified} changed, {missing} not found",
"Связи и изображения: найдено {found}; изменено {modified}, отсутствует {missing}",
),
- ("Fonts: {used} Fonts Used, {missing} Missing", "Шрифты: используется {used}, отсутствует {missing}"),
+ ("Fonts: {used} in use, {missing} unavailable", "Шрифты: используется {used}, отсутствует {missing}"),
("Instructions:", "Инструкции:"),
("Email:", "Эл. почта:"),
("Fax:", "Факс:"),
diff --git a/crates/ui-egui/src/i18n/table.rs b/crates/ui-egui/src/i18n/table.rs
index 8ad790546..ace3a0e68 100644
--- a/crates/ui-egui/src/i18n/table.rs
+++ b/crates/ui-egui/src/i18n/table.rs
@@ -157,7 +157,7 @@ pub(super) const TABLE: &[(&str, [&str; 5])] = &[
("Email:", ["E-Mail:", "E-mail :", "Correo electrónico:", "メール:", "电子邮件:"]),
("Instructions:", ["Anweisungen:", "Instructions :", "Instrucciones:", "指示:", "说明:"]),
(
- "Fonts: {used} Fonts Used, {missing} Missing",
+ "Fonts: {used} in use, {missing} unavailable",
[
"Schriften: {used} verwendet, {missing} fehlen",
"Polices : {used} utilisées, {missing} manquantes",
@@ -167,7 +167,7 @@ pub(super) const TABLE: &[(&str, [&str; 5])] = &[
],
),
(
- "Links and Images: {found} Links Found; {modified} Modified, {missing} Missing",
+ "Links and Images: {found} linked, {modified} changed, {missing} not found",
[
"Verknüpfungen und Bilder: {found} gefunden; {modified} geändert, {missing} fehlen",
"Liens et images : {found} liens trouvés ; {modified} modifiés, {missing} manquants",
@@ -177,7 +177,7 @@ pub(super) const TABLE: &[(&str, [&str; 5])] = &[
],
),
(
- "Images: {embedded} Embedded",
+ "Embedded images: {embedded}",
[
"Bilder: {embedded} eingebettet",
"Images : {embedded} incorporées",
@@ -187,7 +187,7 @@ pub(super) const TABLE: &[(&str, [&str; 5])] = &[
],
),
(
- "Colors and Inks: {process} Process Inks; {spot} Spot Inks",
+ "Colors and Inks: {process} process, {spot} spot",
[
"Farben und Druckfarben: {process} Prozessfarben; {spot} Volltonfarben",
"Couleurs et encres : {process} encres quadri ; {spot} encres d’accompagnement",
diff --git a/crates/ui-egui/src/i18n/uk.rs b/crates/ui-egui/src/i18n/uk.rs
index e7c83ed95..8ab4c5c3d 100644
--- a/crates/ui-egui/src/i18n/uk.rs
+++ b/crates/ui-egui/src/i18n/uk.rs
@@ -86,13 +86,13 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Substituted", "Замінено"),
("Modified", "Змінено"),
("Missing", "Бракує"),
- ("Colors and Inks: {process} Process Inks; {spot} Spot Inks", "Кольори й фарби: тріадних {process}; плашкових {spot}"),
- ("Images: {embedded} Embedded", "Зображення: вбудовано {embedded}"),
+ ("Colors and Inks: {process} process, {spot} spot", "Кольори й фарби: тріадних {process}; плашкових {spot}"),
+ ("Embedded images: {embedded}", "Зображення: вбудовано {embedded}"),
(
- "Links and Images: {found} Links Found; {modified} Modified, {missing} Missing",
+ "Links and Images: {found} linked, {modified} changed, {missing} not found",
"Зв’язки й зображення: знайдено {found}; змінено {modified}, бракує {missing}",
),
- ("Fonts: {used} Fonts Used, {missing} Missing", "Шрифти: використано {used}, бракує {missing}"),
+ ("Fonts: {used} in use, {missing} unavailable", "Шрифти: використано {used}, бракує {missing}"),
("Instructions:", "Інструкції:"),
("Email:", "Ел. пошта:"),
("Fax:", "Факс:"),
diff --git a/crates/ui-egui/src/package_dialog.rs b/crates/ui-egui/src/package_dialog.rs
index f9ce0752d..5f1e98b1d 100644
--- a/crates/ui-egui/src/package_dialog.rs
+++ b/crates/ui-egui/src/package_dialog.rs
@@ -122,21 +122,21 @@ fn summary_lines(lang: &str, d: &Dialog) -> Vec<(String, bool)> {
let (modified, missing) = (count(&links, &["modified"]), count(&links, &["missing"]));
vec![
(
- tr("Fonts: {used} Fonts Used, {missing} Missing")
+ tr("Fonts: {used} in use, {missing} unavailable")
.replace("{used}", &fonts.len().to_string())
.replace("{missing}", &missing_fonts.to_string()),
missing_fonts > 0,
),
(
- tr("Links and Images: {found} Links Found; {modified} Modified, {missing} Missing")
+ tr("Links and Images: {found} linked, {modified} changed, {missing} not found")
.replace("{found}", &links.len().to_string())
.replace("{modified}", &modified.to_string())
.replace("{missing}", &missing.to_string()),
modified + missing > 0,
),
- (tr("Images: {embedded} Embedded").replace("{embedded}", &count(&links, &["embedded"]).to_string()), false),
+ (tr("Embedded images: {embedded}").replace("{embedded}", &count(&links, &["embedded"]).to_string()), false),
(
- tr("Colors and Inks: {process} Process Inks; {spot} Spot Inks")
+ tr("Colors and Inks: {process} process, {spot} spot")
.replace("{process}", &PROCESS_INKS.len().to_string())
.replace("{spot}", &rows(d, "spot").len().to_string()),
false,
@@ -440,10 +440,10 @@ mod tests {
let mut h = harness(app);
h.run_steps(3);
assert!(h.query_by_label("Scope:").is_some());
- assert!(h.query_by_label("Links and Images: 1 Links Found; 0 Modified, 1 Missing").is_some());
- assert!(h.query_by_label("Colors and Inks: 4 Process Inks; 0 Spot Inks").is_some());
+ assert!(h.query_by_label("Links and Images: 1 linked, 0 changed, 1 not found").is_some());
+ assert!(h.query_by_label("Colors and Inks: 4 process, 0 spot").is_some());
let fonts = h.state().ui.dialog.as_ref().unwrap().fields["fonts"].as_array().unwrap().len();
- assert!(h.query_by_label(&format!("Fonts: {fonts} Fonts Used, 0 Missing")).is_some());
+ assert!(h.query_by_label(&format!("Fonts: {fonts} in use, 0 unavailable")).is_some());
// Links and Images: the link, missing; Show Problems Only keeps it.
h.get_by_label("Links and Images").click();
h.run_steps(2);