diff options
author | Karl Berry <karl@freefriends.org> | 2020-04-28 21:11:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-04-28 21:11:54 +0000 |
commit | f5324bd184b19d1e2b0aca934969a4af95f2ed3e (patch) | |
tree | 0c9e1364ce08198c4092bc335fbfa3abce3769ab /Master/texmf-dist/tex/latex/translations/translations.sty | |
parent | 63e976556758aedf58aaab50b49261f5df25252c (diff) |
translations (28apr20)
git-svn-id: svn://tug.org/texlive/trunk@54929 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 | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/translations/translations.sty b/Master/texmf-dist/tex/latex/translations/translations.sty index d013842825a..1749329c9b2 100644 --- a/Master/texmf-dist/tex/latex/translations/translations.sty +++ b/Master/texmf-dist/tex/latex/translations/translations.sty @@ -25,8 +25,8 @@ % If you have any ideas, questions, suggestions or bugs to report, please % feel free to contact me. % -------------------------------------------------------------------------- -\newcommand*\@trnslt@date{2020/04/26} -\newcommand*\@trnslt@version{v1.8a} +\newcommand*\@trnslt@date{2020/04/28} +\newcommand*\@trnslt@version{v1.8b} \newcommand*\@trnslt@packageinfo{internationalization of LaTeX2e packages} \ProvidesPackage{translations}[% @@ -546,7 +546,10 @@ % load dictionaries and check for existing ones: % \LoadDictionary and \LoadDictionaryFor \newrobustcmd*\LoadDictionary[1]{% - \@trnslt@load@dictionary@for{#1}{\@trnslt@current@language}} + \AtEndPreamble{% + \@trnslt@load@dictionary@for{#1}{\@trnslt@current@language}% + }% +} \@onlypreamble\LoadDictionary \newrobustcmd*\LoadDictionaryFor[2]{% @@ -557,6 +560,8 @@ \@trnslt@load@dictionary@for@dialect{#2}{#1}} \@onlypreamble\LoadDictionaryFor +\newcommand*\@trnslt@basic@dictionary{translations-basic-dictionary} + \newcommand*\@trnslt@dictionaries{} \edef\@trnslt@catcodes{% @@ -614,9 +619,19 @@ {% \InputIfFileExists{#1-\baselanguage{#2}.trsl} {\@trnslt@check@dictionary{#1}{#2}} - {\@trnslt@info{no dictionary file `#1-\baselanguage{#2}.trsl' found.}} + {% + \ifdefstring\@trnslt@basic@dictionary{#1} + {\@trnslt@info} + {\@trnslt@warning} + {no dictionary file `#1-\baselanguage{#2}.trsl' found.}% + }% + }% + {% + \ifdefstring\@trnslt@basic@dictionary{#1} + {\@trnslt@info} + {\@trnslt@warning} + {no dictionary file `#1-#2.trsl' found.}% }% - {\@trnslt@info{no dictionary file `#1-#2.trsl' found.}} }% } @@ -1078,7 +1093,7 @@ \fi \expanded{% \noexpand\forcsvlist - {\noexpand\@trnslt@load@dictionary@for{translations-basic-dictionary}} + {\noexpand\@trnslt@load@dictionary@for{\@trnslt@basic@dictionary}} {\expandonce\@trnslt@loaded@languages}% }% \def\do#1{\@trnslt@input@dictionary#1\q@stop} |