summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Haug <mhaug@live.de>2024-01-15 12:36:48 +0100
committerGitHub <noreply@github.com>2024-01-15 11:36:48 +0000
commit5a9de6046b25bdec27df9a500627f3826f5e9742 (patch)
treecf383f041af1e12aacbc6a8bfba62feaec2a579c
parent37249c20f793689b523cbb379f30b37466ca51b9 (diff)
Add Catalan translations (#3181)
-rw-r--r--crates/typst/src/math/equation.rs1
-rw-r--r--crates/typst/src/model/bibliography.rs1
-rw-r--r--crates/typst/src/model/heading.rs1
-rw-r--r--crates/typst/src/model/outline.rs1
-rw-r--r--crates/typst/src/model/table.rs1
-rw-r--r--crates/typst/src/text/lang.rs1
-rw-r--r--crates/typst/src/text/raw.rs1
-rw-r--r--crates/typst/src/visualize/image/mod.rs1
8 files changed, 8 insertions, 0 deletions
diff --git a/crates/typst/src/math/equation.rs b/crates/typst/src/math/equation.rs
index 17d64571..07f61bd3 100644
--- a/crates/typst/src/math/equation.rs
+++ b/crates/typst/src/math/equation.rs
@@ -272,6 +272,7 @@ impl LocalName for EquationElem {
Lang::ALBANIAN => "Ekuacion",
Lang::ARABIC => "معادلة",
Lang::BOKMÅL => "Ligning",
+ Lang::CATALAN => "Equació",
Lang::CHINESE if option_eq(region, "TW") => "方程式",
Lang::CHINESE => "公式",
Lang::CZECH => "Rovnice",
diff --git a/crates/typst/src/model/bibliography.rs b/crates/typst/src/model/bibliography.rs
index 6ec43b66..ecffcb78 100644
--- a/crates/typst/src/model/bibliography.rs
+++ b/crates/typst/src/model/bibliography.rs
@@ -284,6 +284,7 @@ impl LocalName for BibliographyElem {
Lang::ALBANIAN => "Bibliografi",
Lang::ARABIC => "المراجع",
Lang::BOKMÅL => "Bibliografi",
+ Lang::CATALAN => "Bibliografia",
Lang::CHINESE if option_eq(region, "TW") => "書目",
Lang::CHINESE => "参考文献",
Lang::CZECH => "Bibliografie",
diff --git a/crates/typst/src/model/heading.rs b/crates/typst/src/model/heading.rs
index e5fc04cf..bbddcb04 100644
--- a/crates/typst/src/model/heading.rs
+++ b/crates/typst/src/model/heading.rs
@@ -253,6 +253,7 @@ impl LocalName for HeadingElem {
Lang::ALBANIAN => "Kapitull",
Lang::ARABIC => "الفصل",
Lang::BOKMÅL => "Kapittel",
+ Lang::CATALAN => "Secció",
Lang::CHINESE if option_eq(region, "TW") => "小節",
Lang::CHINESE => "小节",
Lang::CZECH => "Kapitola",
diff --git a/crates/typst/src/model/outline.rs b/crates/typst/src/model/outline.rs
index 951e3254..c77a9a98 100644
--- a/crates/typst/src/model/outline.rs
+++ b/crates/typst/src/model/outline.rs
@@ -264,6 +264,7 @@ impl LocalName for OutlineElem {
Lang::ALBANIAN => "Përmbajtja",
Lang::ARABIC => "المحتويات",
Lang::BOKMÅL => "Innhold",
+ Lang::CATALAN => "Índex",
Lang::CHINESE if option_eq(region, "TW") => "目錄",
Lang::CHINESE => "目录",
Lang::CZECH => "Obsah",
diff --git a/crates/typst/src/model/table.rs b/crates/typst/src/model/table.rs
index 81c71462..3055100f 100644
--- a/crates/typst/src/model/table.rs
+++ b/crates/typst/src/model/table.rs
@@ -208,6 +208,7 @@ impl LocalName for TableElem {
Lang::ALBANIAN => "Tabel",
Lang::ARABIC => "جدول",
Lang::BOKMÅL => "Tabell",
+ Lang::CATALAN => "Taula",
Lang::CHINESE => "表",
Lang::CZECH => "Tabulka",
Lang::DANISH => "Tabel",
diff --git a/crates/typst/src/text/lang.rs b/crates/typst/src/text/lang.rs
index f7dfb0e8..111c929b 100644
--- a/crates/typst/src/text/lang.rs
+++ b/crates/typst/src/text/lang.rs
@@ -14,6 +14,7 @@ impl Lang {
pub const ALBANIAN: Self = Self(*b"sq ", 2);
pub const ARABIC: Self = Self(*b"ar ", 2);
pub const BOKMÅL: Self = Self(*b"nb ", 2);
+ pub const CATALAN: Self = Self(*b"ca ", 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);
diff --git a/crates/typst/src/text/raw.rs b/crates/typst/src/text/raw.rs
index c842e417..fc5d8129 100644
--- a/crates/typst/src/text/raw.rs
+++ b/crates/typst/src/text/raw.rs
@@ -434,6 +434,7 @@ impl LocalName for RawElem {
Lang::ALBANIAN => "List",
Lang::ARABIC => "قائمة",
Lang::BOKMÅL => "Utskrift",
+ Lang::CATALAN => "Llistat",
Lang::CHINESE if option_eq(region, "TW") => "程式",
Lang::CHINESE => "代码",
Lang::CZECH => "Seznam",
diff --git a/crates/typst/src/visualize/image/mod.rs b/crates/typst/src/visualize/image/mod.rs
index 7aa8361b..0f4d59cc 100644
--- a/crates/typst/src/visualize/image/mod.rs
+++ b/crates/typst/src/visualize/image/mod.rs
@@ -253,6 +253,7 @@ impl LocalName for ImageElem {
Lang::ALBANIAN => "Figurë",
Lang::ARABIC => "شكل",
Lang::BOKMÅL => "Figur",
+ Lang::CATALAN => "Figura",
Lang::CHINESE if option_eq(region, "TW") => "圖",
Lang::CHINESE => "图",
Lang::CZECH => "Obrázek",