Fix handling of conditional for l10n

This commit is contained in:
Matteo Settenvini 2020-11-14 22:19:02 +01:00
parent 77090835ed
commit f63e079667
2 changed files with 3 additions and 3 deletions

View File

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

View File

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