Added Arabic translations (#688)

This commit is contained in:
Abdul Rahman Sibahi 2023-04-11 15:04:29 +03:00 committed by GitHub
parent 31eb3b571e
commit 9046678610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 0 deletions

View File

@ -286,6 +286,7 @@ impl<T: Into<Value>> From<Celled<T>> for Value {
impl LocalName for TableElem {
fn local_name(&self, lang: Lang) -> &'static str {
match lang {
Lang::ARABIC => "جدول",
Lang::BOKMÅL => "Tabell",
Lang::CHINESE => "",
Lang::FRENCH => "Tableau",

View File

@ -274,6 +274,7 @@ impl Count for EquationElem {
impl LocalName for EquationElem {
fn local_name(&self, lang: Lang) -> &'static str {
match lang {
Lang::ARABIC => "معادلة",
Lang::BOKMÅL => "Ligning",
Lang::CHINESE => "等式",
Lang::FRENCH => "Équation",

View File

@ -201,6 +201,7 @@ impl Show for BibliographyElem {
impl LocalName for BibliographyElem {
fn local_name(&self, lang: Lang) -> &'static str {
match lang {
Lang::ARABIC => "المراجع",
Lang::BOKMÅL => "Bibliografi",
Lang::CHINESE => "参考文献",
Lang::FRENCH => "Bibliographie",

View File

@ -229,6 +229,7 @@ impl Refable for HeadingElem {
impl LocalName for HeadingElem {
fn local_name(&self, lang: Lang) -> &'static str {
match lang {
Lang::ARABIC => "الفصل",
Lang::BOKMÅL => "Kapittel",
Lang::CHINESE => "小节",
Lang::FRENCH => "Chapitre",

View File

@ -252,6 +252,7 @@ impl Show for OutlineElem {
impl LocalName for OutlineElem {
fn local_name(&self, lang: Lang) -> &'static str {
match lang {
Lang::ARABIC => "المحتويات",
Lang::BOKMÅL => "Innhold",
Lang::CHINESE => "目录",
Lang::FRENCH => "Table des matières",

View File

@ -202,6 +202,7 @@ impl Finalize for RawElem {
impl LocalName for RawElem {
fn local_name(&self, lang: Lang) -> &'static str {
match lang {
Lang::ARABIC => "قائمة",
Lang::BOKMÅL => "Utskrift",
Lang::CHINESE => "代码",
Lang::FRENCH => "Liste",

View File

@ -118,6 +118,7 @@ impl Layout for ImageElem {
impl LocalName for ImageElem {
fn local_name(&self, lang: Lang) -> &'static str {
match lang {
Lang::ARABIC => "شكل",
Lang::BOKMÅL => "Figur",
Lang::CHINESE => "",
Lang::FRENCH => "Figure",

View File

@ -515,6 +515,7 @@ pub struct Glyph {
pub struct Lang([u8; 3], u8);
impl Lang {
pub const ARABIC: Self = Self(*b"ar ", 2);
pub const BOKMÅL: Self = Self(*b"nb ", 2);
pub const CHINESE: Self = Self(*b"zh ", 2);
pub const ENGLISH: Self = Self(*b"en ", 2);