Skip to content

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

Integration: #1064 Redefine Style is translated in every UI language

aiongg3896bd2982bd
diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs
index 9cf42b8d1..0d75a95c3 100644
--- a/crates/ui-egui/src/i18n.rs
+++ b/crates/ui-egui/src/i18n.rs
@@ -759,6 +759,7 @@ const TABLE: &[(&str, [&str; 5])] = &[
"Break Link to Style",
["Break Link to Style", "Rompre le lien avec le style", "Break Link to Style", "Break Link to Style", "断开与样式的链接"],
),
+ ("Redefine Style", ["Format neu definieren", "Redéfinir le style", "Redefinir estilo", "スタイルを再定義", "重新定义样式"]),
("Bullets and Numbering", ["Bullets and Numbering", "Puces et numérotation", "Bullets and Numbering", "Bullets and Numbering", "项目符号和编号"]),
("Business Card", ["Business Card", "Carte de visite", "Business Card", "Business Card", "名片"]),
("CMYK", ["CMYK", "CMJN", "CMYK", "CMYK", "CMYK"]),
@@ -5012,4 +5013,11 @@ mod tests {
// Fixed standard names stay identical in every language.
assert_eq!(tr("ja", "PDF/X-4"), "PDF/X-4");
}
+
+ #[test]
+ fn redefine_style_is_translated_in_every_language() {
+ for (code, _) in LANGUAGES.iter().filter(|(c, _)| !c.is_empty()) {
+ assert_ne!(tr(code, "Redefine Style"), "Redefine Style", "{code}");
+ }
+ }
}
diff --git a/crates/ui-egui/src/i18n/ar.rs b/crates/ui-egui/src/i18n/ar.rs
index 9164b5976..baf1e82e6 100644
--- a/crates/ui-egui/src/i18n/ar.rs
+++ b/crates/ui-egui/src/i18n/ar.rs
@@ -964,6 +964,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Bleed and Slug", "النزف ومنطقة المعلومات"),
("Body Rows", "صفوف المتن"),
("Break Link to Style", "فك الارتباط بالنمط"),
+ ("Redefine Style", "إعادة تعريف النمط"),
("Bullets and Numbering", "التعداد النقطي والرقمي"),
("Business Card", "بطاقة عمل"),
("Buttons act in interactive PDF export.", "تعمل الأزرار عند التصدير إلى PDF تفاعلي."),
diff --git a/crates/ui-egui/src/i18n/cs.rs b/crates/ui-egui/src/i18n/cs.rs
index 3aff33c88..e81156b4f 100644
--- a/crates/ui-egui/src/i18n/cs.rs
+++ b/crates/ui-egui/src/i18n/cs.rs
@@ -140,6 +140,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Body Rows", "Řádky těla"),
("Bottom", "Dole"),
("Break Link to Style", "Zrušit propojení se stylem"),
+ ("Redefine Style", "Předefinovat styl"),
("Bullets and Numbering", "Odrážky a číslování"),
("Business Card", "Vizitka"),
("CMYK", "CMYK"),
diff --git a/crates/ui-egui/src/i18n/de.rs b/crates/ui-egui/src/i18n/de.rs
index cb69f2e7e..e9def8d41 100644
--- a/crates/ui-egui/src/i18n/de.rs
+++ b/crates/ui-egui/src/i18n/de.rs
@@ -159,6 +159,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Body Rows", "Tabellenkörperzeilen"),
("Bottom", "Unten"),
("Break Link to Style", "Verknüpfung mit Format aufheben"),
+ ("Redefine Style", "Format neu definieren"),
("Bullets and Numbering", "Aufzählungszeichen und Nummerierung"),
("Business Card", "Visitenkarte"),
("CMYK", "CMYK"),
diff --git a/crates/ui-egui/src/i18n/it.rs b/crates/ui-egui/src/i18n/it.rs
index c7876de4b..650f91f06 100644
--- a/crates/ui-egui/src/i18n/it.rs
+++ b/crates/ui-egui/src/i18n/it.rs
@@ -228,6 +228,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Body Rows", "Righe di corpo"),
("Bottom", "Basso"),
("Break Link to Style", "Interrompi collegamento allo stile"),
+ ("Redefine Style", "Ridefinisci stile"),
("Bullets and Numbering", "Elenchi puntati e numerati"),
("Business Card", "Biglietto da visita"),
("CMYK", "CMYK"),
diff --git a/crates/ui-egui/src/i18n/ja.rs b/crates/ui-egui/src/i18n/ja.rs
index 4d12cfa3a..72e0ecab0 100644
--- a/crates/ui-egui/src/i18n/ja.rs
+++ b/crates/ui-egui/src/i18n/ja.rs
@@ -346,6 +346,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Body Rows", "本体行"),
("Bottom", "下"),
("Break Link to Style", "スタイルへのリンクを解除"),
+ ("Redefine Style", "スタイルを再定義"),
("Bullets and Numbering", "箇条書き記号と番号付け"),
("Business Card", "名刺"),
("CMYK", "CMYK"),
diff --git a/crates/ui-egui/src/i18n/ka.rs b/crates/ui-egui/src/i18n/ka.rs
index d80536170..3645d39a0 100644
--- a/crates/ui-egui/src/i18n/ka.rs
+++ b/crates/ui-egui/src/i18n/ka.rs
@@ -148,6 +148,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Body Rows", "ძირითადი სტრიქონები"),
("Bottom", "ქვემოთ"),
("Break Link to Style", "სტილთან კავშირის გაწყვეტა"),
+ ("Redefine Style", "სტილის ხელახლა განსაზღვრა"),
("Bullets and Numbering", "ბურთულები და დანომვრა"),
("Business Card", "სავიზიტო ბარათი"),
("CMYK", "CMYK"),
diff --git a/crates/ui-egui/src/i18n/pl.rs b/crates/ui-egui/src/i18n/pl.rs
index 07f6b062e..b57928b0a 100644
--- a/crates/ui-egui/src/i18n/pl.rs
+++ b/crates/ui-egui/src/i18n/pl.rs
@@ -138,6 +138,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Body Rows", "Wiersze treści"),
("Bottom", "Dół"),
("Break Link to Style", "Odłącz od stylu"),
+ ("Redefine Style", "Przedefiniuj styl"),
("Bullets and Numbering", "Wypunktowanie i numeracja"),
("Business Card", "Wizytówka"),
("CMYK", "CMYK"),
diff --git a/crates/ui-egui/src/i18n/pt_br.rs b/crates/ui-egui/src/i18n/pt_br.rs
index ff2a9f560..6eeb07cce 100644
--- a/crates/ui-egui/src/i18n/pt_br.rs
+++ b/crates/ui-egui/src/i18n/pt_br.rs
@@ -965,6 +965,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Bleed and Slug", "Sangria e área de informações"),
("Body Rows", "Linhas do corpo"),
("Break Link to Style", "Romper vínculo com o estilo"),
+ ("Redefine Style", "Redefinir estilo"),
("Bullets and Numbering", "Marcadores e numeração"),
("Business Card", "Cartão de visita"),
("Buttons act in interactive PDF export.", "Os botões agem na exportação de PDF interativo."),
diff --git a/crates/ui-egui/src/i18n/ru.rs b/crates/ui-egui/src/i18n/ru.rs
index bd26ec904..2c5fa3119 100644
--- a/crates/ui-egui/src/i18n/ru.rs
+++ b/crates/ui-egui/src/i18n/ru.rs
@@ -140,6 +140,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Body Rows", "Строки тела"),
("Bottom", "Снизу"),
("Break Link to Style", "Разорвать связь со стилем"),
+ ("Redefine Style", "Переопределить стиль"),
("Bullets and Numbering", "Маркеры и нумерация"),
("Business Card", "Визитная карточка"),
("CMYK", "CMYK"),
diff --git a/crates/ui-egui/src/i18n/uk.rs b/crates/ui-egui/src/i18n/uk.rs
index aa36f75d6..f975ab0ff 100644
--- a/crates/ui-egui/src/i18n/uk.rs
+++ b/crates/ui-egui/src/i18n/uk.rs
@@ -231,6 +231,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[
("Body Rows", "Рядки основного вмісту"),
("Bottom", "Знизу"),
("Break Link to Style", "Розірвати зв’язок зі стилем"),
+ ("Redefine Style", "Перевизначити стиль"),
("Bullets and Numbering", "Маркери та нумерація"),
("Business Card", "Візитівка"),
("CMYK", "CMYK"),