summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/iodhbwm/iodhbwm-i18n.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-04-14 21:04:51 +0000
committerKarl Berry <karl@freefriends.org>2020-04-14 21:04:51 +0000
commitbb0c0fea8ff60450f443568e5a7d86551db7371e (patch)
treea3ac343717f5f0821b29c96375814bc3449a4620 /Master/texmf-dist/tex/latex/iodhbwm/iodhbwm-i18n.def
parent1da71ebcf192a4efb0ced33d228fc4d0ea2c57b5 (diff)
iodhbwm (14apr20)
git-svn-id: svn://tug.org/texlive/trunk@54734 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/iodhbwm/iodhbwm-i18n.def')
-rw-r--r--Master/texmf-dist/tex/latex/iodhbwm/iodhbwm-i18n.def36
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/iodhbwm/iodhbwm-i18n.def b/Master/texmf-dist/tex/latex/iodhbwm/iodhbwm-i18n.def
new file mode 100644
index 00000000000..42dda7a3ff1
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/iodhbwm/iodhbwm-i18n.def
@@ -0,0 +1,36 @@
+\newcommand{\@addlanguage}[7]{%
+ \iflanguage{#1}{
+ \renewcommand*{\iodhbwm@file@prefix}{i18n/#1/dhbw}
+
+ \def\iodhbwm@bachelor@type@boe{#2}
+ \def\iodhbwm@bachelor@type@bos{#3}
+ \def\iodhbwm@bachelor@type@boa{#4}
+
+ \def\iodhbwm@thesis@type@ba{#5}
+ \def\iodhbwm@thesis@type@pa{#6}
+ \def\iodhbwm@thesis@type@sa{#7}
+
+ \booltrue{iodhbwm@if@supported@language}
+ }%
+ {}%
+}
+
+% ################################################################
+% ### ADD SUPPORTED LANGUAGES HERE
+% ################################################################
+
+% english
+\@addlanguage{english}
+ {Bachelor of Engineering}
+ {Bachelor of Science}
+ {Bachelor of Arts}
+ {bachelor's thesis}
+ {project report}
+ {study report}
+
+% ################################################################
+
+% Print waring if an unsupported language is used
+\ifbool{iodhbwm@if@supported@language}{}{%
+ \PackageWarning{\iodhbwm@pkg@name}{The passed language `\iodhbwm@main@language` was not found.\MessageBreak Using ngerman instead.}
+}