Add translation aids

This commit is contained in:
2025-07-14 08:50:22 +02:00
parent d824616d80
commit e005c18ea0

View File

@@ -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 }}