summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorchico ferreira <36338391+chicoferreira@users.noreply.github.com>2023-06-30 08:35:27 +0100
committerGitHub <noreply@github.com>2023-06-30 09:35:27 +0200
commit82b893ec0ec547519e92100e864b6421ca01520b (patch)
tree1201125b68117df44ef2732d0c0e87bbef60815f /library
parent084c8642db13b93ed6bd0b6808bcd16c8dfeaf99 (diff)
Add support for European Portuguese variant (#1619)
Diffstat (limited to 'library')
-rw-r--r--library/src/meta/heading.rs1
-rw-r--r--library/src/meta/outline.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/library/src/meta/heading.rs b/library/src/meta/heading.rs
index 7f8c8fba..d70bc0a9 100644
--- a/library/src/meta/heading.rs
+++ b/library/src/meta/heading.rs
@@ -224,6 +224,7 @@ impl LocalName for HeadingElem {
Lang::ITALIAN => "Sezione",
Lang::NYNORSK => "Kapittel",
Lang::POLISH => "Sekcja",
+ Lang::PORTUGUESE if option_eq(region, "PT") => "Secção",
Lang::PORTUGUESE => "Seção",
Lang::RUSSIAN => "Раздел",
Lang::SLOVENIAN => "Poglavje",
diff --git a/library/src/meta/outline.rs b/library/src/meta/outline.rs
index ee13729c..ba858a69 100644
--- a/library/src/meta/outline.rs
+++ b/library/src/meta/outline.rs
@@ -273,6 +273,7 @@ impl LocalName for OutlineElem {
Lang::ITALIAN => "Indice",
Lang::NYNORSK => "Innhald",
Lang::POLISH => "Spis treści",
+ Lang::PORTUGUESE if option_eq(region, "PT") => "Índice",
Lang::PORTUGUESE => "Sumário",
Lang::RUSSIAN => "Содержание",
Lang::SLOVENIAN => "Kazalo",