handle translator

This commit is contained in:
Maximilian Keßler 2022-01-23 15:30:53 +01:00
parent ed965bc461
commit 84503aa5d5

View file

@ -337,6 +337,22 @@
% \end{macrocode} % \end{macrocode}
% %
% %
% This sets up translation if requested.
% Throughout implementation, we can just use \cs{@@_translate:n}
% and will (or not) have translation according to the specified options.
%
% \begin{macrocode}
\bool_if:NTF \g_@@_translator_bool
{
\RequirePackage{translator}
\usedictionary{translator-environment-names}
\cs_set_eq:NN \@@_translate:n \translate
}
{
\cs_set_eq:NN \@@_translate:n \use:n
}
% \end{macrocode}
%
% \begin{macrocode} % \begin{macrocode}
% %