-
Notifications
You must be signed in to change notification settings - Fork 24
Add english translations #12
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
base: main
Are you sure you want to change the base?
Changes from all commits
63d9ec9
8901c91
25142e9
b5e796d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,3 +40,4 @@ bookmark | |
| epstopdf-pkg | ||
| grfext | ||
| hyphen-german | ||
| translations | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,6 +61,29 @@ | |
| \let\oldtitle\title% | ||
| \renewcommand{\title}[1]{\oldtitle{#1}\newcommand{\thetitle}{#1}} | ||
|
|
||
| % Provide all translations through the "translations" package | ||
| \RequirePackage{translations} | ||
|
|
||
| \DeclareTranslation{German}{thesisclass}{Arbeit zur Erlangung des akademischen Grades} | ||
| \DeclareTranslation{English}{thesisclass}{Thesis for obtaining the academic degree} | ||
|
|
||
| \DeclareTranslation{German}{birthplace}{geboren in} | ||
| \DeclareTranslation{English}{birthplace}{born in} | ||
|
|
||
| \DeclareTranslation{German}{firstcorrector}{Erstgutachter} | ||
| \DeclareTranslation{English}{firstcorrector}{Reviewer} | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Supervisor |
||
|
|
||
| \DeclareTranslation{German}{secondcorrector}{Zweitgutachter} | ||
| \DeclareTranslation{English}{secondcorrector}{Co-reviewer} | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Title case (Co-Supervisor) |
||
|
|
||
| \DeclareTranslation{German}{submissiondate}{Abgabedatum} | ||
| \DeclareTranslation{English}{submissiondate}{Submission date} | ||
|
|
||
| \DeclareTranslation{German}{university}{Technische Universität Dortmund} | ||
| \DeclareTranslation{English}{university}{Technische Universität Dortmund} | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TU Dortmund University |
||
| % For now, the name of the university is not translated into English, | ||
| % but this could be changed in the future | ||
|
|
||
| % initialize commands: | ||
| \newcommand\thebirthplace{} | ||
| \newcommand\thechair{} | ||
|
|
@@ -71,7 +94,7 @@ | |
| \newcommand\thesecondcorrector{} | ||
|
|
||
| % new commands for information about the thesis | ||
| \newcommand\birthplace[1]{\renewcommand\thebirthplace{geboren in #1}} | ||
| \newcommand\birthplace[1]{\renewcommand\thebirthplace{#1}} | ||
| \newcommand\chair[1]{\renewcommand\thechair{#1}} | ||
| \newcommand\division[1]{\renewcommand\thedivision{#1}} | ||
| \newcommand\thesisclass[1]{\renewcommand\thethesisclass{#1}} | ||
|
|
@@ -80,23 +103,23 @@ | |
| \newcommand\secondcorrector[1]{\renewcommand\thesecondcorrector{#1}} | ||
|
|
||
| % set title page elements | ||
| \subject{Arbeit zur Erlangung des akademischen Grades\\ \thethesisclass} | ||
| \publishers{\thechair \\ \thedivision \\ Technische Universität Dortmund} | ||
| \subject{\GetTranslation{thesisclass} \\ \thethesisclass} | ||
| \publishers{\thechair \\ \thedivision \\ \GetTranslation{university}} | ||
|
|
||
| % page for the correctors | ||
| \newcommand{\makecorrectorpage}{% | ||
| \thispagestyle{empty} | ||
| \vspace*{\fill} | ||
| \begin{tabular}{@{}l@{\hspace{2em}}l@{}} | ||
| Erstgutachter: & \thefirstcorrector \\ | ||
| Zweitgutachter: & \thesecondcorrector \\ | ||
| Abgabedatum: & \thesubmissiondate | ||
| \GetTranslation{firstcorrector}: & \thefirstcorrector \\ | ||
| \GetTranslation{secondcorrector}: & \thesecondcorrector \\ | ||
| \GetTranslation{submissiondate}: & \thesubmissiondate | ||
| \end{tabular} | ||
| \newpage | ||
| } | ||
|
|
||
| % add birthplace to author | ||
| \let\oldauthor\author | ||
| \renewcommand\author[1]{% | ||
| \oldauthor{#1 \\ \thebirthplace} | ||
| \oldauthor{#1 \\ \GetTranslation{birthplace} \thebirthplace} | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are not the usual translations of these terms, I don't know if there is an official source for english terms though.