From b6b6666efdde33a3727955fb2254ba16a886e1d3 Mon Sep 17 00:00:00 2001 From: sandal Date: Tue, 30 May 2023 10:13:01 +0200 Subject: [PATCH] Add Danish (#1365) --- library/src/layout/table.rs | 1 + library/src/math/mod.rs | 1 + library/src/meta/bibliography.rs | 1 + library/src/meta/heading.rs | 1 + library/src/meta/outline.rs | 1 + library/src/text/raw.rs | 1 + library/src/visualize/image.rs | 1 + src/doc.rs | 1 + 8 files changed, 8 insertions(+) diff --git a/library/src/layout/table.rs b/library/src/layout/table.rs index a7dd9392c..9d5a83d22 100644 --- a/library/src/layout/table.rs +++ b/library/src/layout/table.rs @@ -305,6 +305,7 @@ impl LocalName for TableElem { Lang::BOKMÅL => "Tabell", Lang::CHINESE => "表", Lang::CZECH => "Tabulka", + Lang::DANISH => "Tabel", Lang::DUTCH => "Tabel", Lang::FRENCH => "Tableau", Lang::GERMAN => "Tabelle", diff --git a/library/src/math/mod.rs b/library/src/math/mod.rs index 037ef0efa..3ea96cfad 100644 --- a/library/src/math/mod.rs +++ b/library/src/math/mod.rs @@ -322,6 +322,7 @@ impl LocalName for EquationElem { Lang::CHINESE if option_eq(region, "TW") => "方程式", Lang::CHINESE => "等式", Lang::CZECH => "Rovnice", + Lang::DANISH => "Ligning", Lang::DUTCH => "Vergelijking", Lang::FRENCH => "Équation", Lang::GERMAN => "Gleichung", diff --git a/library/src/meta/bibliography.rs b/library/src/meta/bibliography.rs index 508dd551c..a2491bb59 100644 --- a/library/src/meta/bibliography.rs +++ b/library/src/meta/bibliography.rs @@ -218,6 +218,7 @@ impl LocalName for BibliographyElem { Lang::CHINESE if option_eq(region, "TW") => "書目", Lang::CHINESE => "参考文献", Lang::CZECH => "Bibliografie", + Lang::DANISH => "Bibliografi", Lang::DUTCH => "Bibliografie", Lang::FRENCH => "Bibliographie", Lang::GERMAN => "Bibliographie", diff --git a/library/src/meta/heading.rs b/library/src/meta/heading.rs index fc54d99b6..d6ad7044d 100644 --- a/library/src/meta/heading.rs +++ b/library/src/meta/heading.rs @@ -217,6 +217,7 @@ impl LocalName for HeadingElem { Lang::CHINESE if option_eq(region, "TW") => "小節", Lang::CHINESE => "小节", Lang::CZECH => "Kapitola", + Lang::DANISH => "Afsnit", Lang::DUTCH => "Hoofdstuk", Lang::FRENCH => "Chapitre", Lang::GERMAN => "Abschnitt", diff --git a/library/src/meta/outline.rs b/library/src/meta/outline.rs index 0d7996aa6..04a926510 100644 --- a/library/src/meta/outline.rs +++ b/library/src/meta/outline.rs @@ -271,6 +271,7 @@ impl LocalName for OutlineElem { Lang::CHINESE if option_eq(region, "TW") => "目錄", Lang::CHINESE => "目录", Lang::CZECH => "Obsah", + Lang::DANISH => "Indhold", Lang::DUTCH => "Inhoudsopgave", Lang::FRENCH => "Table des matières", Lang::GERMAN => "Inhaltsverzeichnis", diff --git a/library/src/text/raw.rs b/library/src/text/raw.rs index f781d3b08..5929c04c9 100644 --- a/library/src/text/raw.rs +++ b/library/src/text/raw.rs @@ -230,6 +230,7 @@ impl LocalName for RawElem { Lang::BOKMÅL => "Utskrift", Lang::CHINESE => "代码", Lang::CZECH => "Seznam", + Lang::DANISH => "Liste", Lang::DUTCH => "Listing", Lang::FRENCH => "Liste", Lang::GERMAN => "Listing", diff --git a/library/src/visualize/image.rs b/library/src/visualize/image.rs index 0a25ee043..38fa620cc 100644 --- a/library/src/visualize/image.rs +++ b/library/src/visualize/image.rs @@ -134,6 +134,7 @@ impl LocalName for ImageElem { Lang::BOKMÅL => "Figur", Lang::CHINESE => "图", Lang::CZECH => "Obrázek", + Lang::DANISH => "Figur", Lang::DUTCH => "Figuur", Lang::FRENCH => "Figure", Lang::GERMAN => "Abbildung", diff --git a/src/doc.rs b/src/doc.rs index 59bbbbdd4..7c9c7fc80 100644 --- a/src/doc.rs +++ b/src/doc.rs @@ -518,6 +518,7 @@ impl Lang { pub const BOKMÅL: Self = Self(*b"nb ", 2); pub const CHINESE: Self = Self(*b"zh ", 2); pub const CZECH: Self = Self(*b"cs ", 2); + 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 FRENCH: Self = Self(*b"fr ", 2);