Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Portuguese translation #330

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/dndstrings.sty
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
\RequirePackage{lib/languages/russian}
\RequirePackage{lib/languages/spanish}
\RequirePackage{lib/languages/french}
\RequirePackage{lib/languages/portuguese}
}

% Delay loading captions until after the user has imported a language package.
Expand Down
73 changes: 73 additions & 0 deletions lib/languages/portuguese.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
\ExplSyntaxOn % Use tilde (~) for spaces.

\addto\captionsportuguese
{
% Monster basics
\renewcommand\armorclassname{Classe~de~Armadura}
\renewcommand\hitpointsname{Pontos~de~Vida}
\renewcommand\speedname{Deslocamento}
% Monster ability scores
\renewcommand\strstatname{FOR}
\renewcommand\dexstatname{DES}
\renewcommand\constatname{CON}
\renewcommand\intstatname{INT}
\renewcommand\wisstatname{SAB}
\renewcommand\chastatname{CAR}
% Monster details
\renewcommand\skillsname{Habilidades}
\renewcommand\dimmname{Imunidade~a~Dano}
\renewcommand\dvulname{Vulnerabilidade~a~Dano}
\renewcommand\dresname{Resistência~a~Dano}
\renewcommand\cimmname{Imunidade~a~Condição}
\renewcommand\savesname{Testes~de~Resistência}
\renewcommand\sensesname{Sentidos}
\renewcommand\defaultsensesname{Percepção~passiva~10}
\renewcommand\languagesname{Idiomas}
\renewcommand\challengename{Nível~de~Desafio}
\renewcommand\xpname{XP}
% Monster attack
\renewcommand\unitsname{m}
\renewcommand\weaponname{Arma}
\renewcommand\spellname{Magia}
\renewcommand\meleeattackname{Ataque~Corpo-a-Corpo~com~|1|}
\renewcommand\rangedattackname{Ataque~à~Distância~com~|1|}
\renewcommand\meleeorrangedattackname{Ataque~Corpo-a-Corpo~ou~à~Distancia~com~|1|}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, use `a and ^a

\renewcommand\orname{ou}
\renewcommand\tohitname{|1|~para~atingir}
\renewcommand\defaulttargetsname{um~alvo}
\renewcommand\reachname{alcance}
\renewcommand\rangename{alcance}
\renewcommand\hitname{Acerto}
\renewcommand\damagename{dano}
\renewcommand\plusname{e}
% Spell levels
\renewcommand\spellcantripsname{Truques}
\renewcommand\spellfirstlevelname{1º~nível}
\renewcommand\spellsecondlevelname{2º~nível}
\renewcommand\spellthirdlevelname{3º~nível}
\renewcommand\spellfourthlevelname{4º~nível}
\renewcommand\spellfifthlevelname{5º~nível}
\renewcommand\spellsixthlevelname{6º~nível}
\renewcommand\spellseventhlevelname{7º~nível}
\renewcommand\spelleighthlevelname{8º~nível}
\renewcommand\spellninthlevelname{9º~nível}
% Spell slots
\renewcommand\spellatwillname{à~vontade}
\renewcommand\spelloneslotname{1~espaço}
\renewcommand\spelltwoslotsname{2~espaços}
\renewcommand\spellthreeslotsname{3~espaços}
\renewcommand\spellfourslotsname{4~espaços}
% Innate spellcasting
\renewcommand\innateatwillname{À~vontade}
\renewcommand\numberperdayname{|1|/dia}
\renewcommand\numberperdayeachname{|1|/dia~cada}
% Spell header
\renewcommand\spellcastingtimename{Tempo~de~Conjuração}
\renewcommand\spellrangename{Alcance}
\renewcommand\spellcomponentsname{Componentes}
\renewcommand\spelldurationname{Duração}
% Miscellaneous
\renewcommand\dname{d}
\renewcommand\pageabbreviationname{pág.}
\renewcommand\tocchapterabbreviationname{cap.}
}