From 0e03b1c035f50863fd828faf12e59f1b3c6850a7 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 2 Apr 2020 03:02:37 +0000 Subject: CTAN sync 202004020302 --- macros/latex/contrib/iodhbwm/tex/i18n.def | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 macros/latex/contrib/iodhbwm/tex/i18n.def (limited to 'macros/latex/contrib/iodhbwm/tex/i18n.def') diff --git a/macros/latex/contrib/iodhbwm/tex/i18n.def b/macros/latex/contrib/iodhbwm/tex/i18n.def new file mode 100644 index 0000000000..42dda7a3ff --- /dev/null +++ b/macros/latex/contrib/iodhbwm/tex/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.} +} -- cgit v1.2.3