Use language scopes

Use language scopes so that the language settings of the document are
not touched.
This commit is contained in:
finga 2025-03-02 17:30:38 +01:00
parent 35dc7a6f2d
commit cc886096f2

View file

@ -25,6 +25,5 @@
\DTLsort{word}{dictionary}%
\scriptsize%
\DTLforeach*{dictionary}{\word=word,\translation=translation}{%
\selectlanguage{\@dictionary@primary}\textbf{\word:} \selectlanguage{\@dictionary@secondary}\translation\\}%
\selectlanguage{\@dictionary@primary}%
\foreignlanguage{\@dictionary@primary}{\textbf{\word:} }\foreignlanguage{\@dictionary@secondary}{\translation}\\}%
}