handle translator
This commit is contained in:
parent
ed965bc461
commit
84503aa5d5
1 changed files with 16 additions and 0 deletions
|
@ -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}
|
||||||
%
|
%
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue