From 275883a01f7d07f88825f007d6ab346d5f8dbd27 Mon Sep 17 00:00:00 2001 From: Marten Roots <57254926+rezzubs@users.noreply.github.com> Date: Wed, 29 Nov 2023 19:47:13 +0200 Subject: [PATCH] Added the Estonian language to LocalName (#2797) --- crates/typst/src/math/equation.rs | 1 + crates/typst/src/model/bibliography.rs | 1 + crates/typst/src/model/heading.rs | 1 + crates/typst/src/model/outline.rs | 1 + crates/typst/src/model/table.rs | 1 + crates/typst/src/text/lang.rs | 1 + crates/typst/src/text/raw.rs | 1 + crates/typst/src/visualize/image/mod.rs | 1 + 8 files changed, 8 insertions(+) diff --git a/crates/typst/src/math/equation.rs b/crates/typst/src/math/equation.rs index f5fa60610..745493ee4 100644 --- a/crates/typst/src/math/equation.rs +++ b/crates/typst/src/math/equation.rs @@ -238,6 +238,7 @@ impl LocalName for EquationElem { Lang::CZECH => "Rovnice", Lang::DANISH => "Ligning", Lang::DUTCH => "Vergelijking", + Lang::ESTONIAN => "Valem", Lang::FILIPINO => "Ekwasyon", Lang::FINNISH => "Yhtälö", Lang::FRENCH => "Équation", diff --git a/crates/typst/src/model/bibliography.rs b/crates/typst/src/model/bibliography.rs index 626468dc0..cd1b19f5a 100644 --- a/crates/typst/src/model/bibliography.rs +++ b/crates/typst/src/model/bibliography.rs @@ -283,6 +283,7 @@ impl LocalName for BibliographyElem { Lang::CZECH => "Bibliografie", Lang::DANISH => "Bibliografi", Lang::DUTCH => "Bibliografie", + Lang::ESTONIAN => "Viited", Lang::FILIPINO => "Bibliograpiya", Lang::FINNISH => "Viitteet", Lang::FRENCH => "Bibliographie", diff --git a/crates/typst/src/model/heading.rs b/crates/typst/src/model/heading.rs index 6f8932d4b..40152d8f3 100644 --- a/crates/typst/src/model/heading.rs +++ b/crates/typst/src/model/heading.rs @@ -254,6 +254,7 @@ impl LocalName for HeadingElem { Lang::CZECH => "Kapitola", Lang::DANISH => "Afsnit", Lang::DUTCH => "Hoofdstuk", + Lang::ESTONIAN => "Peatükk", Lang::FILIPINO => "Seksyon", Lang::FINNISH => "Osio", Lang::FRENCH => "Chapitre", diff --git a/crates/typst/src/model/outline.rs b/crates/typst/src/model/outline.rs index 06b032fa5..6f4c4a0aa 100644 --- a/crates/typst/src/model/outline.rs +++ b/crates/typst/src/model/outline.rs @@ -264,6 +264,7 @@ impl LocalName for OutlineElem { Lang::CZECH => "Obsah", Lang::DANISH => "Indhold", Lang::DUTCH => "Inhoudsopgave", + Lang::ESTONIAN => "Sisukord", Lang::FILIPINO => "Talaan ng mga Nilalaman", Lang::FINNISH => "Sisällys", Lang::FRENCH => "Table des matières", diff --git a/crates/typst/src/model/table.rs b/crates/typst/src/model/table.rs index 31c6636f8..b1e938ad1 100644 --- a/crates/typst/src/model/table.rs +++ b/crates/typst/src/model/table.rs @@ -342,6 +342,7 @@ impl LocalName for TableElem { Lang::CZECH => "Tabulka", Lang::DANISH => "Tabel", Lang::DUTCH => "Tabel", + Lang::ESTONIAN => "Tabel", Lang::FILIPINO => "Talaan", Lang::FINNISH => "Taulukko", Lang::FRENCH => "Tableau", diff --git a/crates/typst/src/text/lang.rs b/crates/typst/src/text/lang.rs index 35c3422f3..c98cbfcee 100644 --- a/crates/typst/src/text/lang.rs +++ b/crates/typst/src/text/lang.rs @@ -19,6 +19,7 @@ impl Lang { pub const DANISH: Self = Self(*b"da ", 2); pub const DUTCH: Self = Self(*b"nl ", 2); pub const ENGLISH: Self = Self(*b"en ", 2); + pub const ESTONIAN: Self = Self(*b"et ", 2); pub const FILIPINO: Self = Self(*b"tl ", 2); pub const FINNISH: Self = Self(*b"fi ", 2); pub const FRENCH: Self = Self(*b"fr ", 2); diff --git a/crates/typst/src/text/raw.rs b/crates/typst/src/text/raw.rs index 6962dbce8..5a7323cf1 100644 --- a/crates/typst/src/text/raw.rs +++ b/crates/typst/src/text/raw.rs @@ -438,6 +438,7 @@ impl LocalName for RawElem { Lang::CZECH => "Seznam", Lang::DANISH => "Liste", Lang::DUTCH => "Listing", + Lang::ESTONIAN => "List", Lang::FILIPINO => "Listahan", Lang::FINNISH => "Esimerkki", Lang::FRENCH => "Liste", diff --git a/crates/typst/src/visualize/image/mod.rs b/crates/typst/src/visualize/image/mod.rs index 159dc14ad..d883dab90 100644 --- a/crates/typst/src/visualize/image/mod.rs +++ b/crates/typst/src/visualize/image/mod.rs @@ -255,6 +255,7 @@ impl LocalName for ImageElem { Lang::CZECH => "Obrázek", Lang::DANISH => "Figur", Lang::DUTCH => "Figuur", + Lang::ESTONIAN => "Joonis", Lang::FILIPINO => "Pigura", Lang::FINNISH => "Kuva", Lang::FRENCH => "Fig.",