Skip to content

Commit

Permalink
Japanese update (#310)
Browse files Browse the repository at this point in the history
* Add \defaultsensesname in Japanese

* Fix \numberperdayeachname in Japanese

* Remove unnecessary percent signs in the template

* Add temporary translations for \tocchapterabbreviationname and \pageabbreviationname
  • Loading branch information
jeandeaual authored Dec 17, 2024
1 parent 93a842f commit 19b5a07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/languages/_template.sty
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,13 @@
\renewcommand\innateatwillname{At~will}
\renewcommand\numberperdayname{|1|/day}
\renewcommand\numberperdayeachname{|1|/day~each}
% % Spell header
% Spell header
\renewcommand\spellcastingtimename{Casting~Time}
\renewcommand\spellrangename{Range}
\renewcommand\spellcomponentsname{Components}
\renewcommand\spelldurationname{Duration}
% % Miscellaneous
% Miscellaneous
\renewcommand\tocchapterabbreviationname{Ch.}
\renewcommand\pageabbreviationname{pg.}
\renewcommand\dname{d}
}
6 changes: 4 additions & 2 deletions lib/languages/japanese.sty
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
\renewcommand\cimmname{状態完全耐性:}
\renewcommand\savesname{セーブ:}
\renewcommand\sensesname{感覚:}
\renewcommand\defaultsensesname{受動〈知覚〉10}
\renewcommand\languagesname{言語:}
\renewcommand\challengename{脅威度:}
\renewcommand\xpname{XP}
Expand Down Expand Up @@ -58,13 +59,14 @@
% Innate spellcasting
\renewcommand\innateatwillname{無限回}
\renewcommand\numberperdayname{|1|回/日}
\renewcommand\numberperdayeachname{|1|回/日ずつ} % TODO: Confirm official translation
\renewcommand\numberperdayeachname{|1|回/日}
% Spell header
\renewcommand\spellcastingtimename{発動時間}
\renewcommand\spellrangename{射程}
\renewcommand\spellcomponentsname{構成要素}
\renewcommand\spelldurationname{持続時間}
% Miscellaneous
\renewcommand\tocchapterabbreviationname{章} % TODO: Update to 第|1|章 when https://github.com/rpgtex/DND-5e-LaTeX-Template/issues/308 is closed
\renewcommand\pageabbreviationname{ページ} % TODO: Update to |1|ページ when https://github.com/rpgtex/DND-5e-LaTeX-Template/issues/308 is closed
\renewcommand\dname{d}
% \newcommand\tocchapterabbreviationname{Ch.}
}

0 comments on commit 19b5a07

Please sign in to comment.