From c19a2aebefadb70b9a4fb3fed990ea447167650c Mon Sep 17 00:00:00 2001 From: SammyL-eo Date: Mon, 12 Oct 2026 05:01:26 -0500 Subject: [PATCH] Added some fixes to the spanish "Info" Page on Wordcraft (#695) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added some fixes to the spanish "Info" Page on Wordcraft * Added more Spanish fixes * Review fixes for #695: test and catalog agree; drop rows main already has Intense Quote is "Cita intensa" in both; "Palabras clave", "Categoría". Caption, Heading {n} and Title were duplicates of main's rows (main's "Título" kept). TOC, Keywords, List Paragraph and the Subtle rows moved into alphabetical order. Turkish and Estonian get the same new keys, which their coverage tests require. Co-Authored-By: Claude Opus 5.5 * Polish: the style and document-property names the Spanish Info page now translates --------- Co-authored-by: Brandon Thomas Co-authored-by: Claude Opus 5.5 --- crates/ui-egui/src/i18n/es.tsv | 24 ++++++++++++++++++++++ crates/ui-egui/src/i18n/et.tsv | 24 ++++++++++++++++++++++ crates/ui-egui/src/i18n/pl.tsv | 24 ++++++++++++++++++++++ crates/ui-egui/src/i18n/tests.rs | 34 ++++++++++++++++++++++++++++++++ crates/ui-egui/src/i18n/tr.tsv | 24 ++++++++++++++++++++++ 5 files changed, 130 insertions(+) diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index e2bff07..e614843 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -163,6 +163,7 @@ Bold Negrita Bookmark Marcador Bookmark name: Nombre del marcador: + Book Title Título de libro Border Painter Pincel de bordes Border\nPainter Pincel de\nbordes Borders Bordes @@ -211,6 +212,7 @@ Cancel Cancelar Capitalize Each Word Mayúscula inicial en cada palabra Captions Leyendas + Category Categoría Cell Margins Márgenes de celda Cell Size Tamaño de celda Cell\nMargins Márgenes de\ncelda @@ -273,6 +275,7 @@ Compress Pictures Comprimir imágenes Compress punctuation at the start of a line Comprimir la puntuación al inicio de la línea Continuous Continuo + Contributors Colaboradores Convert Convertir Convert Text to Table Convertir texto en tabla Convert Text to Table… Convertir texto en tabla… @@ -365,6 +368,9 @@ Editor Editor Effects Efectos Emboss Relieve + Emphasis Énfasis + Endnote Reference Referencia de nota al final + Endnote Text Texto de nota al final Encrypt with Password Cifrar con contraseña English (United States) Inglés (Estados Unidos) Engrave Grabado @@ -405,6 +411,8 @@ Fonts Fuentes Footer Pie de página Footnote and Endnote Nota al pie y nota final + Footnote Reference Referencia de nota al pie + Footnote Text Texto de nota al pie Footnotes Notas al pie Format Formato Format Page Numbers Formato de números de página @@ -443,6 +451,7 @@ Home Inicio Horizontal Horizontal Horizontal Line Línea horizontal + Hyperlink Hipervínculo Hyphenation Separación de palabras Icons Iconos Ignore All Omitir todo @@ -484,6 +493,9 @@ Insert\nCaption Insertar\nleyenda Insert\nCitation Insertar\ncita Insert\nFootnote Insertar nota\nal pie + Intense Emphasis Énfasis intenso + Intense Quote Cita intensa + Intense Reference Referencia intensa Inside Borders Bordes interiores Inspect Document Inspeccionar documento Inspect Styles at Selection Inspeccionar estilos de la selección @@ -498,6 +510,7 @@ Keep with Next Mantener con el siguiente Keep with next Mantener con el siguiente Keeps the fonts and formatting of the copied text. Conserva las fuentes y el formato del texto copiado. + Keywords Palabras clave Labels Etiquetas Landscape Horizontal Language Idioma @@ -581,6 +594,7 @@ No Color Sin color No Markup Sin marcas No Paragraph Space Sin espacio entre párrafos + No Spacing Sin espaciado No contributor data was built into this copy. Esta copia no incluye datos de colaboradores. No model credits were built into this copy. Esta copia no incluye créditos de modelos. No templates match your search. Ninguna plantilla coincide con la búsqueda. @@ -691,6 +705,7 @@ Quick Access Toolbar Barra de herramientas de acceso rápido Quick Parts Elementos rápidos Quick Tables Tablas rápidas + Quote Cita Read Aloud Leer en voz alta Read Mode Modo lectura Read\nAloud Leer en\nvoz alta @@ -853,6 +868,7 @@ Statistics Estadísticas Status Bar Barra de estado Strikethrough Tachado + Strong Fuerte Studio cover Portada de Studio Studio handbook (sample) Manual de Studio (ejemplo) Style Estilo @@ -862,7 +878,11 @@ Style: {style} Estilo: {style} Styles Estilos Styles Pane Panel de estilos + Subject Asunto Subscript Subíndice + Subtitle Subtítulo + Subtle Emphasis Énfasis sutil + Subtle Reference Referencia sutil Superscript Superíndice Switch Modes Cambiar de modo Switch\nModes Cambiar\nde modo @@ -908,6 +928,8 @@ Thick Gruesa Three Tres Tight Ajustado + TOC Heading Título de tabla de contenido + TOC {n} Tabla de contenido {n} To open Word documents with WordCraft by default: select one in Finder, choose File › Get Info, pick WordCraft under Open with, then click Change All. Para abrir los documentos de Word con WordCraft de forma predeterminada: selecciona uno en el Finder, elige Archivo › Obtener información, selecciona WordCraft en «Abrir con» y haz clic en «Cambiar todo». Top Border Borde superior Top Margin Margen superior @@ -1251,6 +1273,7 @@ Index and Tables Índices y tablas Line between Línea entre columnas Links and References Vínculos y referencias + List Paragraph Párrafo de lista Mail Merge Combinar correspondencia More Columns… Más columnas… More Symbols… Más símbolos… @@ -1372,6 +1395,7 @@ First Primero Last Último Model Modelo + Models Modelos Version Versión % of all commits % de todos los commits Lines +/− Líneas +/− diff --git a/crates/ui-egui/src/i18n/et.tsv b/crates/ui-egui/src/i18n/et.tsv index 5d0da6a..25850b5 100644 --- a/crates/ui-egui/src/i18n/et.tsv +++ b/crates/ui-egui/src/i18n/et.tsv @@ -80,6 +80,7 @@ Bold Paks Bookmark Järjehoidja Bookmark name: Järjehoidja nimi: + Book Title Raamatu pealkiri Border Painter Äärisepintsel Border\nPainter Äärise-\npintsel Borders Äärised @@ -95,6 +96,7 @@ Cancel Loobu Capitalize Each Word Iga sõna suure algustähega Captions Pealdised + Category Kategooria Cell Margins Lahtri veerised Cell Size Lahtri suurus Cell\nMargins Lahtri\nveerised @@ -150,6 +152,7 @@ Compare Võrdle Compress Pictures Tihenda pildid Continuous Pidev + Contributors Panustajad Convert Teisenda Convert Text to Table Teisenda tekst tabeliks Convert Text to Table… Teisenda tekst tabeliks… @@ -237,6 +240,9 @@ Editor Toimetaja Effects Efektid Emboss Reljeef + Emphasis Rõhutus + Endnote Reference Lõpumärkuse viide + Endnote Text Lõpumärkuse tekst Encrypt with Password Krüpti parooliga English (United States) Inglise (Ameerika Ühendriigid) Engrave Süvend @@ -277,6 +283,8 @@ Fonts Fondid Footer Jalus Footnote and Endnote Allmärkus ja lõpumärkus + Footnote Reference Allmärkuse viide + Footnote Text Allmärkuse tekst Footnotes Allmärkused Format Vorming Format Page Numbers Vorminda leheküljenumbrid @@ -318,6 +326,7 @@ Home Avaleht Horizontal Rõhtne Horizontal Line Rõhtjoon + Hyperlink Hüperlink Hyphenation Poolitus Icons Ikoonid Ignore All Eira kõiki @@ -362,6 +371,9 @@ Insert\nCaption Lisa\npealdis Insert\nCitation Lisa\nviide Insert\nFootnote Lisa\nallmärkus + Intense Emphasis Intensiivne rõhutus + Intense Quote Intensiivne tsitaat + Intense Reference Intensiivne viide Inside Borders Siseäärised Inside: Sisemine: Inspect Document Kontrolli dokumenti @@ -379,6 +391,7 @@ Keep with Next Hoia järgmisega koos Keep with next Hoia järgmisega koos Keeps the fonts and formatting of the copied text. Säilitab kopeeritud teksti fondid ja vorminduse. + Keywords Märksõnad Labels Sildid Landscape Rõhtpaigutus Language Keel @@ -466,6 +479,7 @@ No Color Värvita No Markup Märgistuseta No Paragraph Space Lõiguvaheta + No Spacing Vahedeta No contributor data was built into this copy. Selles versioonis pole kaasautorite andmeid. No model credits were built into this copy. Selles versioonis pole mudelite autoriteavet. No templates match your search. Otsingule vastavaid malle pole. @@ -574,6 +588,7 @@ Quick Access Toolbar Kiirpääsuriba Quick Parts Kiirplokid Quick Tables Kiirtabelid + Quote Tsitaat Read Aloud Loe ette Read Mode Lugemisrežiim Read\nAloud Loe\nette @@ -733,6 +748,7 @@ Statistics Statistika Status Bar Olekuriba Strikethrough Läbikriipsutus + Strong Tugev Studio cover Stuudio esileht Studio handbook (sample) Stuudio käsiraamat (näidis) Style Stiil @@ -742,7 +758,11 @@ Style: {style} Stiil: {style} Styles Stiilid Styles Pane Stiilipaan + Subject Teema Subscript Allindeks + Subtitle Alapealkiri + Subtle Emphasis Tagasihoidlik rõhutus + Subtle Reference Tagasihoidlik viide Superscript Ülaindeks Switch Modes Vaheta režiimi Switch\nModes Vaheta\nrežiimi @@ -788,6 +808,8 @@ Thick Paks Three Kolm Tight Tihe + TOC Heading Sisukorra pealkiri + TOC {n} Sisukord {n} Top Border Ülemine ääris Top of Page Lehe ülaserv Top: Ülal: @@ -1199,6 +1221,7 @@ First Esimene Last Viimane Model Mudel + Models Mudelid Version Versioon % of all commits % kõigist commitidest Lines +/− Read +/− @@ -1334,6 +1357,7 @@ Index and Tables Register ja tabelid Line between Joon vahel Links and References Lingid ja viited + List Paragraph Loendilõik Mail Merge Kirjakooste More Columns… Rohkem veerge… More Symbols… Rohkem sümboleid… diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index 41fd289..ae3e547 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -2065,3 +2065,27 @@ Hindi Hindi Context Kontekstowe System Systemowe + Book Title Tytuł książki + Category Kategoria + Contributors Współtwórcy + Emphasis Wyróżnienie + Endnote Reference Odwołanie przypisu końcowego + Endnote Text Tekst przypisu końcowego + Footnote Reference Odwołanie przypisu dolnego + Footnote Text Tekst przypisu dolnego + Hyperlink Hiperłącze + Intense Emphasis Wyróżnienie intensywne + Intense Quote Cytat intensywny + Intense Reference Odwołanie intensywne + Keywords Słowa kluczowe + No Spacing Bez odstępów + Quote Cytat + Strong Pogrubienie + Subject Temat + Subtitle Podtytuł + Subtle Emphasis Wyróżnienie delikatne + Subtle Reference Odwołanie delikatne + TOC Heading Nagłówek spisu treści + TOC {n} Spis treści {n} + List Paragraph Akapit z listą + Models Modele diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index 7384efc..97f74cf 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -561,6 +561,40 @@ fn built_in_style_names_are_translated_for_display_and_user_styles_are_not() { assert_eq!(sheet.get("Normal").unwrap().name, "Normal"); } +#[test] +fn spanish_built_in_style_names_are_translated() { + set_current(lang("es")); + for (source, expected) in [ + ("Book Title", "Título de libro"), + ("Caption", "Leyenda"), + ("Emphasis", "Énfasis"), + ("Endnote Reference", "Referencia de nota al final"), + ("Endnote Text", "Texto de nota al final"), + ("Footnote Reference", "Referencia de nota al pie"), + ("Footnote Text", "Texto de nota al pie"), + ("Hyperlink", "Hipervínculo"), + ("Intense Emphasis", "Énfasis intenso"), + ("Intense Quote", "Cita intensa"), + ("Intense Reference", "Referencia intensa"), + ("List Paragraph", "Párrafo de lista"), + ("Quote", "Cita"), + ("Strong", "Fuerte"), + ("Subtitle", "Subtítulo"), + ("Subtle Emphasis", "Énfasis sutil"), + ("Subtle Reference", "Referencia sutil"), + ("TOC Heading", "Título de tabla de contenido"), + ] { + assert_eq!(builtin_style_name(source), expected, "{source}"); + } + for level in 4..=9 { + assert_eq!(builtin_style_name(&format!("Heading {level}")), format!("Título {level}")); + } + for level in 1..=9 { + assert_eq!(builtin_style_name(&format!("TOC {level}")), format!("Tabla de contenido {level}")); + } + set_current(Lang::EN); +} + #[test] fn context_entries_override_only_their_context_and_unknown_contexts_are_rejected() { let (c, errors) = Catalog::parse("\tTitle\tЗаголовок\npreview\tTitle\tТитул\n\tFont\tШрифт\nnope\tFont\tX\n"); diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index 1dab129..bfef58b 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -83,6 +83,7 @@ Bold Kalın Bookmark Yer İşareti Bookmark name: Yer işareti adı: + Book Title Kitap Adı Border Painter Kenarlık Fırçası Border\nPainter Kenarlık\nFırçası Borders Kenarlıklar @@ -99,6 +100,7 @@ Cancel İptal Capitalize Each Word Her Sözcüğün İlk Harfini Büyüt Captions Resim Yazıları + Category Kategori Cell Margins Hücre Kenar Boşlukları Cell Size Hücre Boyutu Cell\nMargins Hücre Kenar\nBoşlukları @@ -151,6 +153,7 @@ Compare Karşılaştır Compress Pictures Resimleri Sıkıştır Continuous Sürekli + Contributors Katkıda Bulunanlar Convert Dönüştür Convert Text to Table Metni Tabloya Dönüştür Convert Text to Table… Metni Tabloya Dönüştür… @@ -238,6 +241,9 @@ Editor Düzenleyici Effects Efektler Emboss Kabartma + Emphasis Vurgu + Endnote Reference Sonnot Başvurusu + Endnote Text Sonnot Metni Encrypt with Password Parolayla Şifrele English (United States) İngilizce (Amerika Birleşik Devletleri) Engrave Oyma @@ -278,6 +284,8 @@ Fonts Yazı Tipleri Footer Altbilgi Footnote and Endnote Dipnot ve Sonnot + Footnote Reference Dipnot Başvurusu + Footnote Text Dipnot Metni Footnotes Dipnotlar Format Biçim Format Page Numbers Sayfa Numaralarını Biçimlendir @@ -316,6 +324,7 @@ Home Giriş Horizontal Yatay Horizontal Line Yatay Çizgi + Hyperlink Köprü Hyphenation Heceleme Icons Simgeler Ignore All Tümünü Yoksay @@ -355,6 +364,9 @@ Insert\nCaption Resim Yazısı\nEkle Insert\nCitation Atıf\nEkle Insert\nFootnote Dipnot\nEkle + Intense Emphasis Yoğun Vurgu + Intense Quote Yoğun Alıntı + Intense Reference Yoğun Başvuru Inside Borders İç Kenarlıklar Inspect Document Belgeyi İncele Inspect Styles at Selection Seçimdeki Stilleri İncele @@ -369,6 +381,7 @@ Keep with Next Sonrakiyle Birlikte Tut Keep with next Sonrakiyle birlikte tut Keeps the fonts and formatting of the copied text. Kopyalanan metnin yazı tiplerini ve biçimlendirmesini korur. + Keywords Anahtar Sözcükler Labels Etiketler Landscape Yatay Language Dil @@ -450,6 +463,7 @@ No Color Renk Yok No Markup İşaret Yok No Paragraph Space Paragraf Boşluğu Yok + No Spacing Aralık Yok No contributor data was built into this copy. Bu kopyaya katkıda bulunan verisi eklenmemiş. No model credits were built into this copy. Bu kopyaya model katkıları eklenmemiş. No templates match your search. Aramanızla eşleşen şablon yok. @@ -546,6 +560,7 @@ Quick Access Toolbar Hızlı Erişim Araç Çubuğu Quick Parts Hızlı Parçalar Quick Tables Hızlı Tablolar + Quote Alıntı Read Aloud Sesli Oku Read Mode Okuma Modu Read\nAloud Sesli\nOku @@ -700,6 +715,7 @@ Statistics İstatistikler Status Bar Durum Çubuğu Strikethrough Üstü Çizili + Strong Güçlü Studio cover Stüdyo kapağı Studio handbook (sample) Stüdyo el kitabı (örnek) Style Stil @@ -709,7 +725,11 @@ Style: {style} Stil: {style} Styles Stiller Styles Pane Stiller Bölmesi + Subject Konu Subscript Alt Simge + Subtitle Alt Başlık + Subtle Emphasis Hafif Vurgu + Subtle Reference Hafif Başvuru Superscript Üst Simge Switch Modes Mod Değiştir Switch\nModes Mod\nDeğiştir @@ -753,6 +773,8 @@ Thick Kalın Three Üç Tight Sıkı + TOC Heading İçindekiler Başlığı + TOC {n} İçindekiler {n} Top Border Üst Kenarlık Top Margin Üst Kenar Boşluğu Top of Page Sayfa Üstü @@ -1173,6 +1195,7 @@ Index and Tables Dizin ve Tablolar Line between Sütunlar arasında çizgi Links and References Bağlantılar ve Başvurular + List Paragraph Liste Paragrafı Mail Merge Posta Birleştirme More Columns… Diğer Sütunlar… More Symbols… Diğer Semboller… @@ -1292,6 +1315,7 @@ First İlk Last Son Model Model + Models Modeller Version Sürüm % of all commits Commit payı (%) Lines +/− Satır +/−