diff options
author | Norbert Preining <norbert@preining.info> | 2020-04-15 03:02:52 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-04-15 03:02:52 +0000 |
commit | e768cc604852d6fe8821592cea67835f67eab0db (patch) | |
tree | 06dc26d3571570f9578f59825f6ecc2186dfb47c /macros/latex/contrib/iodhbwm/tex/iodhbwm-i18n.def | |
parent | c7235aafe4ddb8f9800cdf784212d4c53bb53e32 (diff) |
CTAN sync 202004150302
Diffstat (limited to 'macros/latex/contrib/iodhbwm/tex/iodhbwm-i18n.def')
-rw-r--r-- | macros/latex/contrib/iodhbwm/tex/iodhbwm-i18n.def | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/macros/latex/contrib/iodhbwm/tex/iodhbwm-i18n.def b/macros/latex/contrib/iodhbwm/tex/iodhbwm-i18n.def new file mode 100644 index 0000000000..42dda7a3ff --- /dev/null +++ b/macros/latex/contrib/iodhbwm/tex/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.} +} |