diff options
author | Karl Berry <karl@freefriends.org> | 2021-01-16 22:27:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-01-16 22:27:29 +0000 |
commit | 3ed15084bb84e1e7921a3e5a7a9fc11dbe5a2075 (patch) | |
tree | 869e86c1c783838bc3d77779c8eaf1c7efd081f7 /Master/texmf-dist/tex/latex/translations/translations.sty | |
parent | 1eeae05f64972a7535b5ea7d86a5a7e3aa8d104d (diff) |
translations (16jan21)
git-svn-id: svn://tug.org/texlive/trunk@57446 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/translations/translations.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/translations/translations.sty | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/translations/translations.sty b/Master/texmf-dist/tex/latex/translations/translations.sty index 49418ecc85a..85ca86120d5 100644 --- a/Master/texmf-dist/tex/latex/translations/translations.sty +++ b/Master/texmf-dist/tex/latex/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 |