summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/translations/translations.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/translations/translations.sty')
-rw-r--r--macros/latex/contrib/translations/translations.sty22
1 files changed, 11 insertions, 11 deletions
diff --git a/macros/latex/contrib/translations/translations.sty b/macros/latex/contrib/translations/translations.sty
index 49418ecc85..85ca86120d 100644
--- a/macros/latex/contrib/translations/translations.sty
+++ b/macros/latex/contrib/translations/translations.sty
@@ -8,15 +8,15 @@
% Web: https://github.com/cgnieder/translations
% E-Mail: contact@mychemistry.eu
% --------------------------------------------------------------------------
-% Copyright 2012--2020 Clemens Niederberger
+% Copyright 2012--2021 Clemens Niederberger
%
% This work may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
+% conditions of the LaTeX Project Public License, either version 1.3c
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2005/12/01 or later.
+% and version 1.3c or later is part of all distributions of LaTeX
+% version 2008/05/04 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
@@ -25,15 +25,15 @@
% If you have any ideas, questions, suggestions or bugs to report, please
% feel free to contact me.
% --------------------------------------------------------------------------
-\newcommand*\@trnslt@date{2020/11/08}
-\newcommand*\@trnslt@version{v1.9}
+\newcommand*\@trnslt@date{2021/01/16}
+\newcommand*\@trnslt@version{v1.10}
\newcommand*\@trnslt@packageinfo{internationalization of LaTeX2e packages}
\ProvidesPackage{translations}[%
\@trnslt@date\space
\@trnslt@version\space
\@trnslt@packageinfo\space (CN)]
-\RequirePackage{scrlfile,etoolbox,pdftexcmds}
+\RequirePackage{etoolbox,pdftexcmds}
% --------------------------------------------------------------------------
% message handling
@@ -70,7 +70,7 @@
% --------------------------------------------------------------------------
% check if babel or polyglossia is used
-\AtEndPreamble{
+\AddToHook{begindocument/before}{
\@ifpackageloaded{babel}{}{
\@ifpackageloaded{polyglossia}{}
{\@trnslt@info{No language package found. I am going to use `english'
@@ -579,7 +579,7 @@
% load dictionaries and check for existing ones:
% \LoadDictionary and \LoadDictionaryFor
\newrobustcmd*\LoadDictionary[1]{%
- \AtEndPreamble{%
+ \AddToHook{begindocument/before}{%
\@trnslt@load@dictionary@for{#1}{\@trnslt@current@language}%
}%
}
@@ -632,7 +632,7 @@
% #1: name
% #2: lang
\newrobustcmd*\@trnslt@check@dictionary[2]{%
- \AfterFile{#1-\@trnslt@language{#2}.trsl}
+ \AddToHook{file/#1-\@trnslt@language{#2}.trsl/after}
{%
\edef\@trnslt@tmpa{\@trnslt@language{#2}}%
\ifcsdef{@trnslt@dictionary@#1@\@trnslt@tmpa}
@@ -1233,4 +1233,4 @@
2020/11/08 v1.9 - add \ifcurrentlang{<lang>} ... \else ... \fi
- add \ifcurrentbaselang{<lang>} ... \else ... \fi
- add Brazilian basic dictionary
-
+2021/01/16 v1.10 - remove scrlfile dependency