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';
|
||||
$pdf_previewer = 'xdg-open';
|
||||
|
||||
$pre_tex_code = '\newcommand*\GermanTranslation{}';
|
||||
$pre_tex_code = '\newcommand*\ActiveTranslation{german}';
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
\newcommand\gm{\textit{(m.)} }
|
||||
\newcommand\gf{\textit{(f.)} }
|
||||
|
||||
\providecommand{ActiveTranslation}{none}
|
||||
\newenvironment{translation}[1]{%
|
||||
\def\switchtolang{#1}
|
||||
% TODO: for now we accept only german, else proper case handling needed:
|
||||
\ifdefined\GermanTranslation
|
||||
\ifx\switchtolang\ActiveTranslation
|
||||
\begin{adjustwidth}{.1\textwidth}{}
|
||||
\begin{\switchtolang}
|
||||
\itshape
|
||||
|
|
Loading…
Reference in New Issue