Reorganize matches on languages

This commit is contained in:
Laurenz 2023-04-06 14:59:05 +02:00
parent cca85a572a
commit 1e5a100d6a
7 changed files with 21 additions and 14 deletions

View File

@ -292,11 +292,11 @@ impl LocalName for TableElem {
Lang::GERMAN => "Tabelle",
Lang::ITALIAN => "Tabella",
Lang::NYNORSK => "Tabell",
Lang::POLISH => "Tabela",
Lang::PORTUGUESE => "Tabela",
Lang::POLISH | Lang::PORTUGUESE => "Tabela",
Lang::RUSSIAN => "Таблица",
Lang::SPANISH => "Tabla",
Lang::SLOVENIAN => "Tabela",
Lang::SPANISH => "Tabla",
Lang::UKRAINIAN => "Таблиця",
Lang::ENGLISH | _ => "Table",
}

View File

@ -283,8 +283,8 @@ impl LocalName for EquationElem {
Lang::POLISH => "Równanie",
Lang::PORTUGUESE => "Equação",
Lang::RUSSIAN => "Уравнение",
Lang::SPANISH => "Ecuación",
Lang::SLOVENIAN => "Enačba",
Lang::SPANISH => "Ecuación",
Lang::UKRAINIAN => "Рівняння",
Lang::ENGLISH | _ => "Equation",
}

View File

@ -202,14 +202,16 @@ impl LocalName for BibliographyElem {
fn local_name(&self, lang: Lang) -> &'static str {
match lang {
Lang::BOKMÅL => "Bibliografi",
Lang::GERMAN | Lang::FRENCH => "Bibliographie",
Lang::CHINESE => "参考文献",
Lang::FRENCH => "Bibliographie",
Lang::GERMAN => "Bibliographie",
Lang::ITALIAN => "Bibliografia",
Lang::NYNORSK => "Bibliografi",
Lang::POLISH | Lang::PORTUGUESE => "Bibliografia",
Lang::POLISH => "Bibliografia",
Lang::PORTUGUESE => "Bibliografia",
Lang::RUSSIAN => "Библиография",
Lang::SPANISH => "Bibliografía",
Lang::SLOVENIAN => "Literatura",
Lang::SPANISH => "Bibliografía",
Lang::UKRAINIAN => "Бібліографія",
Lang::ENGLISH | _ => "Bibliography",
}

View File

@ -238,8 +238,8 @@ impl LocalName for HeadingElem {
Lang::POLISH => "Sekcja",
Lang::PORTUGUESE => "Seção",
Lang::RUSSIAN => "Раздел",
Lang::SPANISH => "Sección",
Lang::SLOVENIAN => "Poglavje",
Lang::SPANISH => "Sección",
Lang::UKRAINIAN => "Розділ",
Lang::ENGLISH | _ => "Section",
}

View File

@ -261,8 +261,8 @@ impl LocalName for OutlineElem {
Lang::POLISH => "Spis treści",
Lang::PORTUGUESE => "Sumário",
Lang::RUSSIAN => "Содержание",
Lang::SPANISH => "Índice",
Lang::SLOVENIAN => "Kazalo",
Lang::SPANISH => "Índice",
Lang::UKRAINIAN => "Зміст",
Lang::ENGLISH | _ => "Contents",
}

View File

@ -204,14 +204,15 @@ impl LocalName for RawElem {
match lang {
Lang::BOKMÅL => "Utskrift",
Lang::CHINESE => "代码",
Lang::FRENCH => "Liste",
Lang::GERMAN => "Listing",
Lang::ITALIAN => "Codice",
Lang::NYNORSK => "Utskrift",
Lang::RUSSIAN => "Листинг",
Lang::FRENCH => "Liste",
Lang::POLISH => "Program",
Lang::RUSSIAN => "Листинг",
Lang::SLOVENIAN => "Program",
Lang::UKRAINIAN => "Лістинг",
Lang::ENGLISH | Lang::GERMAN | _ => "Listing",
Lang::ENGLISH | _ => "Listing",
}
}
}

View File

@ -120,13 +120,17 @@ impl LocalName for ImageElem {
match lang {
Lang::BOKMÅL => "Figur",
Lang::CHINESE => "",
Lang::FRENCH => "Figure",
Lang::GERMAN => "Abbildung",
Lang::ITALIAN => "Figura",
Lang::NYNORSK => "Figur",
Lang::ITALIAN | Lang::PORTUGUESE | Lang::SPANISH => "Figura",
Lang::POLISH => "Rysunek",
Lang::RUSSIAN | Lang::UKRAINIAN => "Рисунок",
Lang::PORTUGUESE => "Figura",
Lang::RUSSIAN => "Рисунок",
Lang::SLOVENIAN => "Slika",
Lang::ENGLISH | Lang::FRENCH | _ => "Figure",
Lang::SPANISH => "Figura",
Lang::UKRAINIAN => "Рисунок",
Lang::ENGLISH | _ => "Figure",
}
}
}