diff --git a/library/src/layout/table.rs b/library/src/layout/table.rs index 4e21cb452..f04de3dd1 100644 --- a/library/src/layout/table.rs +++ b/library/src/layout/table.rs @@ -292,6 +292,7 @@ impl LocalName for TableElem { Lang::ITALIAN => "Tabella", Lang::PORTUGUESE => "Tabela", Lang::RUSSIAN => "Таблица", + Lang::UKRAINIAN => "Таблиця", Lang::ENGLISH | _ => "Table", } } diff --git a/library/src/math/mod.rs b/library/src/math/mod.rs index 626f3d874..da928c2a8 100644 --- a/library/src/math/mod.rs +++ b/library/src/math/mod.rs @@ -280,6 +280,7 @@ impl LocalName for EquationElem { Lang::ITALIAN => "Equazione", Lang::PORTUGUESE => "Equação", Lang::RUSSIAN => "Уравнение", + Lang::UKRAINIAN => "Рівняння", Lang::ENGLISH | _ => "Equation", } } diff --git a/library/src/meta/bibliography.rs b/library/src/meta/bibliography.rs index 864aa1ff4..dd05c060b 100644 --- a/library/src/meta/bibliography.rs +++ b/library/src/meta/bibliography.rs @@ -206,6 +206,7 @@ impl LocalName for BibliographyElem { Lang::ITALIAN => "Bibliografia", Lang::PORTUGUESE => "Bibliografia", Lang::RUSSIAN => "Библиография", + Lang::UKRAINIAN => "Бібліографія", Lang::ENGLISH | _ => "Bibliography", } } diff --git a/library/src/meta/heading.rs b/library/src/meta/heading.rs index dbf585736..1400019e1 100644 --- a/library/src/meta/heading.rs +++ b/library/src/meta/heading.rs @@ -235,6 +235,7 @@ impl LocalName for HeadingElem { Lang::ITALIAN => "Sezione", Lang::PORTUGUESE => "Seção", Lang::RUSSIAN => "Раздел", + Lang::UKRAINIAN => "Розділ", Lang::ENGLISH | _ => "Section", } } diff --git a/library/src/meta/outline.rs b/library/src/meta/outline.rs index 21305b092..51766972c 100644 --- a/library/src/meta/outline.rs +++ b/library/src/meta/outline.rs @@ -246,6 +246,7 @@ impl LocalName for OutlineElem { Lang::ITALIAN => "Indice", Lang::PORTUGUESE => "Sumário", Lang::RUSSIAN => "Содержание", + Lang::UKRAINIAN => "Зміст", Lang::ENGLISH | _ => "Contents", } } diff --git a/library/src/text/quotes.rs b/library/src/text/quotes.rs index 55cbe8188..a8f7aa34a 100644 --- a/library/src/text/quotes.rs +++ b/library/src/text/quotes.rs @@ -145,7 +145,7 @@ impl<'s> Quotes<'s> { "fr" => ("‹\u{00A0}", "\u{00A0}›", "«\u{00A0}", "\u{00A0}»"), "bs" | "fi" | "sv" => ("’", "’", "”", "”"), "hu" | "pl" | "ro" => ("’", "’", "„", "”"), - "ru" | "no" | "nb" | "nn" => ("’", "’", "«", "»"), + "ru" | "no" | "nb" | "nn" | "ua" => ("’", "’", "«", "»"), _ => return Self::default(), }; diff --git a/library/src/text/raw.rs b/library/src/text/raw.rs index 594fd1c68..69afe3a9f 100644 --- a/library/src/text/raw.rs +++ b/library/src/text/raw.rs @@ -206,6 +206,7 @@ impl LocalName for RawElem { Lang::ITALIAN => "Codice", Lang::RUSSIAN => "код", Lang::FRENCH => "Liste", + Lang::UKRAINIAN => "Лістинг", Lang::ENGLISH | Lang::GERMAN | _ => "Listing", } } diff --git a/library/src/visualize/image.rs b/library/src/visualize/image.rs index 3e4d1adb1..ef3210514 100644 --- a/library/src/visualize/image.rs +++ b/library/src/visualize/image.rs @@ -121,7 +121,7 @@ impl LocalName for ImageElem { Lang::CHINESE => "图", Lang::GERMAN => "Abbildung", Lang::ITALIAN | Lang::PORTUGUESE => "Figura", - Lang::RUSSIAN => "Рисунок", + Lang::RUSSIAN | Lang::UKRAINIAN => "Рисунок", Lang::ENGLISH | Lang::FRENCH | _ => "Figure", } } diff --git a/src/doc.rs b/src/doc.rs index c21b095bb..18336e936 100644 --- a/src/doc.rs +++ b/src/doc.rs @@ -522,6 +522,7 @@ impl Lang { pub const ITALIAN: Self = Self(*b"it ", 2); pub const PORTUGUESE: Self = Self(*b"pt ", 2); pub const RUSSIAN: Self = Self(*b"ru ", 2); + pub const UKRAINIAN: Self = Self(*b"ua ", 2); /// Return the language code as an all lowercase string slice. pub fn as_str(&self) -> &str {