From e005c18ea0ba34bbd2702de995fe08729ddcdc04 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Mon, 14 Jul 2025 08:50:22 +0200 Subject: [PATCH] Add translation aids --- main/core.tex | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/main/core.tex b/main/core.tex index 773ff8b..b6e6051 100644 --- a/main/core.tex +++ b/main/core.tex @@ -1,4 +1,4 @@ - + % ▄▄█▀▀▀█▄█ % ▄██▀ ▀█ % ██▀ ▀ ▄██▀██▄▀███▄███ ▄▄█▀██ @@ -6,7 +6,7 @@ % ██▄ ██ ██ ██ ██▀▀▀▀▀▀ % ▀██▄ ▄▀██▄ ▄██ ██ ██▄ ▄ % ▀▀█████▀ ▀█████▀▄████▄ ▀█████▀ - + % This file contains all necessary dependencies for the document to compile (at all) and some core macros % Imports % @@ -63,10 +63,10 @@ \newcommand{\loadLang}{ \ifnum\value{lang}<2{ \typeout{[Lang Loader] Loaded English} - }\else { - \typeout{[Lang Loader] Loaded German} - \setcounter{lang}{2} - } + }\else { + \typeout{[Lang Loader] Loaded German} + \setcounter{lang}{2} + } \fi } @@ -126,6 +126,19 @@ } -% translate the document between two languages +% ──────────────────────────────────────────────────────────────────── +% ╭────────────────────────────────────────────────╮ +% │ Translatation │ +% ╰────────────────────────────────────────────────╯ \newcommand{\translate}[2]{\ifnum\value{lang}<2{#1}\else{#2}\fi} \newcommand{\tr}[2]{\translate{#1}{#2}} + +% ┌ ┐ +% │ Translation aids (commonly used) │ +% └ ┘ +\newcommand{\trif}{\translate{if }{falls }} +\newcommand{\trIf}{\translate{If }{Falls }} +\newcommand{\trLet}{\translate{Let }{Sei }} +\newcommand{\trLets}{\translate{Let }{Seien }} +\newcommand{\trand}{\translate{and }{und }} +\newcommand{\trwith}{\translate{with }{mit }}