1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
\ProvidesFile{gloss-portuguese.ldf}[polyglossia: module for portuguese]
\PolyglossiaSetup{portuguese}{
bcp47=pt-PT,
babelname=portuges,
hyphennames={portuges,portuguese},
hyphenmins={2,3},
langtag=PTG,
fontsetup=true,
}
% BCP-47 compliant aliases
\setlanguagealias*[variant=portuguese]{portuguese}{pt-PT}
\setlanguagealias*[variant=brazilian]{portuguese}{pt-BR}
\setlanguagealias*{portuguese}{pt}
% Babel aliases
\setlanguagealias[variant=portuguese]{portuguese}{portuges}
\setlanguagealias[variant=brazilian]{portuguese}{brazil}
\def\portuguese@variant{portuges}
\define@choicekey*+{portuguese}{variant}[\xpg@val\xpg@nr]{portuguese,brazilian}[portuguese]{%
\ifcase\xpg@nr\relax
% portuguese:
\def\portuguese@variant{portuges}%
\SetLanguageKeys{portuguese}{babelname=portuges,bcp47=pt-PT}%
\or
% brazilian:
\def\portuguese@variant{brazil}%
\SetLanguageKeys{portuguese}{babelname=brazil,bcp47=pt-BR}%
% There are no specific brazil patterns
\adddialect\l@brazil\l@portuges\relax%
\fi
\xpg@info{Option: portuguese, variant=\xpg@val}%
}{\xpg@warning{Unknown portuguese variant `#1'}}
% Register default options
\xpg@initialize@gloss@options{portuguese}{variant=portuguese}
\def\portuguese@language{%
\polyglossia@setup@language@patterns{\portuguese@variant}%
}%
\def\captionsportuguese@portuges{%
\def\refname{Referências}%
\def\abstractname{Resumo}%
\def\bibname{Bibliografia}%
\def\prefacename{Prefácio}%
\def\chaptername{Capítulo}%
\def\appendixname{Apêndice}%
\def\contentsname{Conteúdo}%
\def\listfigurename{Lista de Figuras}%
\def\listtablename{Lista de Tabelas}%
\def\indexname{Índice}%
\def\figurename{Figura}%
\def\tablename{Tabela}%
\def\partname{Parte}%
\def\pagename{Página}%
\def\seename{ver}%
\def\alsoname{ver também}%
\def\enclname{Anexo}%
\def\ccname{Com cópia a}%
\def\headtoname{Para}%
\def\proofname{Demonstração}%
\def\glossaryname{Glossário}%
}
\def\captionsportuguese@brazil{%
\def\refname{Referências}%
\def\abstractname{Resumo}%
\def\bibname{Referências Bibliográficas}%
\def\prefacename{Prefácio}%
\def\chaptername{Capítulo}%
\def\appendixname{Apêndice}%
\def\contentsname{Sumário}%
\def\listfigurename{Lista de Figuras}%
\def\listtablename{Lista de Tabelas}%
\def\indexname{Índice Remissivo}%
\def\figurename{Figura}%
\def\tablename{Tabela}%
\def\partname{Parte}%
\def\pagename{Página}%
\def\seename{veja}%
\def\alsoname{veja também}%
\def\enclname{Anexo}%
\def\ccname{Cópia para}%
\def\headtoname{Para}%
\def\proofname{Demonstração}%
\def\glossaryname{Glossário}%
}
\def\captionsportuguese{%
\csname captionsportuguese@\portuguese@variant\endcsname%
}
\def\dateportuguese@portuges{%
\def\today{\number\day\space de\space\ifcase\month\or
Janeiro\or Fevereiro\or Março\or Abril\or Maio\or Junho\or
Julho\or Agosto\or Setembro\or Outubro\or Novembro\or Dezembro\fi
\space de\space\number\year}%
}
\def\dateportuguese@brazil{%
\def\today{\number\day\space de\space\ifcase\month\or
janeiro\or fevereiro\or março\or abril\or maio\or junho\or
julho\or agosto\or setembro\or outubro\or novembro\or dezembro%
\fi\space de\space\number\year}%
}
\def\dateportuguese{%
\csname dateportuguese@\portuguese@variant\endcsname%
}
\endinput
|