Added Arabic translations (#688)
This commit is contained in:
parent
31eb3b571e
commit
9046678610
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user