Fix handling of conditional for l10n
This commit is contained in:
parent
77090835ed
commit
f63e079667
|
@ -6,4 +6,4 @@ $aux_dir = 'build';
|
||||||
$out_dir = 'build';
|
$out_dir = 'build';
|
||||||
$pdf_previewer = 'xdg-open';
|
$pdf_previewer = 'xdg-open';
|
||||||
|
|
||||||
$pre_tex_code = '\newcommand*\GermanTranslation{}';
|
$pre_tex_code = '\newcommand*\ActiveTranslation{german}';
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
\newcommand\gm{\textit{(m.)} }
|
\newcommand\gm{\textit{(m.)} }
|
||||||
\newcommand\gf{\textit{(f.)} }
|
\newcommand\gf{\textit{(f.)} }
|
||||||
|
|
||||||
|
\providecommand{ActiveTranslation}{none}
|
||||||
\newenvironment{translation}[1]{%
|
\newenvironment{translation}[1]{%
|
||||||
\def\switchtolang{#1}
|
\def\switchtolang{#1}
|
||||||
% TODO: for now we accept only german, else proper case handling needed:
|
\ifx\switchtolang\ActiveTranslation
|
||||||
\ifdefined\GermanTranslation
|
|
||||||
\begin{adjustwidth}{.1\textwidth}{}
|
\begin{adjustwidth}{.1\textwidth}{}
|
||||||
\begin{\switchtolang}
|
\begin{\switchtolang}
|
||||||
\itshape
|
\itshape
|
||||||
|
|
Loading…
Reference in New Issue