Add translation aids
This commit is contained in:
@@ -126,6 +126,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
% translate the document between two languages
|
% ────────────────────────────────────────────────────────────────────
|
||||||
|
% ╭────────────────────────────────────────────────╮
|
||||||
|
% │ Translatation │
|
||||||
|
% ╰────────────────────────────────────────────────╯
|
||||||
\newcommand{\translate}[2]{\ifnum\value{lang}<2{#1}\else{#2}\fi}
|
\newcommand{\translate}[2]{\ifnum\value{lang}<2{#1}\else{#2}\fi}
|
||||||
\newcommand{\tr}[2]{\translate{#1}{#2}}
|
\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 }}
|
||||||
|
Reference in New Issue
Block a user