diff options
author | Karl Berry <karl@freefriends.org> | 2017-03-03 23:15:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-03-03 23:15:43 +0000 |
commit | eb35f681a60c0e2d0829962cc50bd0f65917ec19 (patch) | |
tree | 430af8cf86574bd31d4721972e9e0eaaca9543b1 /Master/texmf-dist | |
parent | cc8d1ad1700d2df55c36b5cfe916461e669f1772 (diff) |
translations (3mar17)
git-svn-id: svn://tug.org/texlive/trunk@43392 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
9 files changed, 326 insertions, 71 deletions
diff --git a/Master/texmf-dist/doc/latex/translations/README b/Master/texmf-dist/doc/latex/translations/README index 19a8d38b0a4..8ad871e7e88 100644 --- a/Master/texmf-dist/doc/latex/translations/README +++ b/Master/texmf-dist/doc/latex/translations/README @@ -1,5 +1,5 @@ -------------------------------------------------------------------------- -the TRANSLATIONS package v1.4a - 2016/06/02 +the TRANSLATIONS package v1.5 - 2017/03/03 internationalization of LaTeX2e packages -------------------------------------------------------------------------- @@ -7,7 +7,7 @@ Clemens Niederberger Web: http://www.mychemistry.eu/forums/forum/translations E-Mail: contact@mychemistry.eu -------------------------------------------------------------------------- -Copyright 2012-2016 Clemens Niederberger +Copyright 2012-2017 Clemens Niederberger This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 @@ -24,6 +24,7 @@ The Current Maintainer of this work is Clemens Niederberger. The translations package consists of the files - translations.sty, translations_en.tex, translations_en.pdf, translations-basic-dictionary-english.trsl, + translations-basic-dictionary-dutch.trsl, translations-basic-dictionary-french.trsl, translations-basic-dictionary-german.trsl, translations-basic-dictionary-spanish.trsl diff --git a/Master/texmf-dist/doc/latex/translations/translations_en.pdf b/Master/texmf-dist/doc/latex/translations/translations_en.pdf Binary files differindex acf665980ba..1dc764f0572 100644 --- a/Master/texmf-dist/doc/latex/translations/translations_en.pdf +++ b/Master/texmf-dist/doc/latex/translations/translations_en.pdf diff --git a/Master/texmf-dist/doc/latex/translations/translations_en.tex b/Master/texmf-dist/doc/latex/translations/translations_en.tex index 96a83310a3b..7a76f6ac45f 100644 --- a/Master/texmf-dist/doc/latex/translations/translations_en.tex +++ b/Master/texmf-dist/doc/latex/translations/translations_en.tex @@ -1,5 +1,5 @@ -% arara: pdflatex: { shell: on } -% arara: biber +% !arara: pdflatex: { shell: on } +% !arara: biber % arara: pdflatex % arara: pdflatex % -------------------------------------------------------------------------- @@ -12,7 +12,7 @@ % Web: http://www.mychemistry.eu/forums/forum/translations % E-Mail: contact@mychemistry.eu % -------------------------------------------------------------------------- -% Copyright 2012-2016 Clemens Niederberger +% Copyright 2012-2017 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -135,9 +135,8 @@ extended to the needs I faced there. \section{License and Requirements}\label{sec:license} \license -\translations\ requires the packages \pkg{cnltx-base} from the \bnd{cnltx} -bundle~\cite{bnd:cnltx} and \pkg{scrlfile} (part of the \KOMAScript\ -bundle~\cite{bnd:koma-script}). +\translations\ requires the packages \pkg{etoolbox}~\cite{pkg:etoolbox} and +\pkg{scrlfile} (part of the \KOMAScript\ bundle~\cite{bnd:koma-script}). \section{Usage} @@ -607,12 +606,12 @@ Every dictionary file \emph{must} contain the declaration \subsubsection{\translations' Basic Dictionaries}\label{sec:transl-basic-dict} \translations\ already provides a basic dictionary for the languages English, -French, German and Spanish. This dictionary is loaded automatically if the -document language is one of these four. If you'd like to contribute and add -the basic dictionary in your language this is more than welcome and highly +Dutch, French, German and Spanish. This dictionary is loaded automatically if +the document language is one of these four. If you'd like to contribute and +add the basic dictionary in your language this is more than welcome and highly appreciated! The easiest way to do this would be to copy one of the existing -files \code{translations-basic-dictionary-\meta{lang}.trsl} and modify the file -accordingly. You can then send me the file via email and I'll add it to +files \code{translations-basic-dictionary-\meta{lang}.trsl} and modify the +file accordingly. You can then send me the file via email and I'll add it to \translations. \Cref{tab:dict} lists all words provided by the basic dictionary for German. @@ -761,10 +760,7 @@ by \pkg{babel} and \pkg{polyglossia} but very likely this is not the case. Should you miss a language please send me an email so I can add it to \translations. -\section{Implementation} -\lstinputlisting[style=cnltx]{translations.sty} - +% \section{Implementation} +% \lstinputlisting[style=cnltx]{translations.sty} \end{document} - - diff --git a/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-dutch.trsl b/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-dutch.trsl new file mode 100644 index 00000000000..177616e26c0 --- /dev/null +++ b/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-dutch.trsl @@ -0,0 +1,136 @@ +% -------------------------------------------------------------------------- +% the TRANSLATIONS package +% +% internationalization of LaTeX2e packages +% +% -------------------------------------------------------------------------- +% Clemens Niederberger +% Web: http://www.mychemistry.eu/forums/forum/translations +% E-Mail: contact@mychemistry.eu +% -------------------------------------------------------------------------- +% Copyright 2012-2017 Clemens Niederberger +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% 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. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Clemens Niederberger. +% -------------------------------------------------------------------------- +% If you have any ideas, questions, suggestions or bugs to report, please +% feel free to contact me. +% -------------------------------------------------------------------------- +\ProvideDictionaryFor{Dutch}{translations-basic-dictionary} + +\ProvideDictTranslation{Abstract}{Samenvatting} +\ProvideDictTranslation{Addresses}{Adressen} +\ProvideDictTranslation{addresses}{adressen} +\ProvideDictTranslation{Address}{Adres} +\ProvideDictTranslation{address}{adres} +\ProvideDictTranslation{and}{en} +\ProvideDictTranslation{Appendix}{Appendix} +\ProvideDictTranslation{Authors}{Auteurs} +\ProvideDictTranslation{authors}{auteurs} +\ProvideDictTranslation{Author}{Auteur} +\ProvideDictTranslation{author}{auteur} +\ProvideDictTranslation{Bibliography}{Bibliografie} +\ProvideDictTranslation{cc}{cc} +\ProvideDictTranslation{Chapters}{Hoofdstukken} +\ProvideDictTranslation{chapters}{hoofdstukken} +\ProvideDictTranslation{Chapter}{Hoofdstuk} +\ProvideDictTranslation{chapter}{hoofdstuk} +\ProvideDictTranslation{Conclusion}{Conclusie} +\ProvideDictTranslation{conclusion}{conclusie} +\ProvideDictTranslation{Contents}{Inhoud} +\ProvideDictTranslation{Continuation}{Vervolg} +\ProvideDictTranslation{continuation}{vervolg} +\ProvideDictTranslation{cont}{vervolg} +\ProvideDictTranslation{encl (plural)}{B\ij lagen} +\ProvideDictTranslation{encl (singular)}{B\ij lage} +\ProvideDictTranslation{encl}{B\ij lage(n)} +\ProvideDictTranslation{Figures}{Figuren} +\ProvideDictTranslation{figures}{figuren} +\ProvideDictTranslation{Figure}{Figuur} +\ProvideDictTranslation{figure}{figuur} +\ProvideDictTranslation{From}{Van} +\ProvideDictTranslation{from}{van} +\ProvideDictTranslation{Glossary}{Verklarende Woordenl\ij st} +\ProvideDictTranslation{Index}{Register} +\ProvideDictTranslation{Introduction}{Inleiding} +\ProvideDictTranslation{introduction}{inleiding} +\ProvideDictTranslation{List of Figures and Tables}{L\ij st van figuren en tabellen} +\ProvideDictTranslation{List of Figures}{L\ij st van figuren} +\ProvideDictTranslation{List of Tables}{L\ij st van tabellen} +\ProvideDictTranslation{or}{of} +\ProvideDictTranslation{Outline}{Indeling} +\ProvideDictTranslation{Overview}{Overzicht} +\ProvideDictTranslation{Pages}{Pagina's} +\ProvideDictTranslation{pages}{pagina's} +\ProvideDictTranslation{Page}{Pagina} +\ProvideDictTranslation{page}{pagina} +\ProvideDictTranslation{Paragraphs}{Alinea's} +\ProvideDictTranslation{paragraphs}{alinea's} +\ProvideDictTranslation{Paragraph}{Alinea} +\ProvideDictTranslation{paragraph}{alinea} +\ProvideDictTranslation{Parts}{Delen} +\ProvideDictTranslation{parts}{delen} +\ProvideDictTranslation{Part}{Deel} +\ProvideDictTranslation{part}{deel} +\ProvideDictTranslation{Preface}{Woord vooraf} +\ProvideDictTranslation{Proofs}{Bew\ij zen} +\ProvideDictTranslation{proofs}{Bew\ij zen} +\ProvideDictTranslation{Proof}{Bew\ij s} +\ProvideDictTranslation{proof}{bew\ij s} +\ProvideDictTranslation{References}{Referenties} +\ProvideDictTranslation{Related work}{Verwant werk} +\ProvideDictTranslation{Related Work}{Verwant Werk} +\ProvideDictTranslation{Sections}{Paragrafen} +\ProvideDictTranslation{sections}{paragrafen} +\ProvideDictTranslation{Section}{Paragraaf} +\ProvideDictTranslation{section}{paragraaf} +\ProvideDictTranslation{See also}{Zie ook} +\ProvideDictTranslation{see also}{zie ook} +\ProvideDictTranslation{See}{Zie} +\ProvideDictTranslation{see}{zie} +\ProvideDictTranslation{Sketch of Proofs}{Bew\ij schetsen} +\ProvideDictTranslation{Sketch of proofs}{bew\ij schetsen} +\ProvideDictTranslation{Sketch of Proof}{Bew\ij schets} +\ProvideDictTranslation{Sketch of proof}{bew\ij schets} +\ProvideDictTranslation{Subsections}{Subparagrafen} +\ProvideDictTranslation{subsections}{subparagrafen} +\ProvideDictTranslation{Subsection}{Subparagraaf} +\ProvideDictTranslation{subsection}{subparagraaf} +\ProvideDictTranslation{Summary}{Samenvatting} +\ProvideDictTranslation{Tables}{Tabellen} +\ProvideDictTranslation{tables}{tabellen} +\ProvideDictTranslation{Table}{Tabel} +\ProvideDictTranslation{table}{tabel} +\ProvideDictTranslation{To}{Aan} +\ProvideDictTranslation{to}{aan} + +\ProvideDictTranslation{Monday}{Maandag} +\ProvideDictTranslation{Tuesday}{Dinsdag} +\ProvideDictTranslation{Wednesday}{Woensdag} +\ProvideDictTranslation{Thursday}{Donderdag} +\ProvideDictTranslation{Friday}{Vr\ij dag} +\ProvideDictTranslation{Saturday}{Zaterdag} +\ProvideDictTranslation{Sunday}{Zondag} + +\ProvideDictTranslation{January}{Januari} +\ProvideDictTranslation{February}{Februari} +\ProvideDictTranslation{March}{Maart} +\ProvideDictTranslation{April}{April} +\ProvideDictTranslation{May}{Mei} +\ProvideDictTranslation{June}{Juni} +\ProvideDictTranslation{July}{Juli} +\ProvideDictTranslation{August}{Augustus} +\ProvideDictTranslation{September}{September} +\ProvideDictTranslation{October}{Oktober} +\ProvideDictTranslation{November}{November} +\ProvideDictTranslation{December}{December} + diff --git a/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-english.trsl b/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-english.trsl index 1e04357ccff..5e0fc65d00b 100644 --- a/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-english.trsl +++ b/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-english.trsl @@ -1,3 +1,30 @@ +% -------------------------------------------------------------------------- +% the TRANSLATIONS package +% +% internationalization of LaTeX2e packages +% +% -------------------------------------------------------------------------- +% Clemens Niederberger +% Web: http://www.mychemistry.eu/forums/forum/translations +% E-Mail: contact@mychemistry.eu +% -------------------------------------------------------------------------- +% Copyright 2012-2017 Clemens Niederberger +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% 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. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Clemens Niederberger. +% -------------------------------------------------------------------------- +% If you have any ideas, questions, suggestions or bugs to report, please +% feel free to contact me. +% -------------------------------------------------------------------------- \ProvideDictionaryFor{English}{translations-basic-dictionary} \ProvideDictTranslation{Abstract}{Abstract} diff --git a/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-french.trsl b/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-french.trsl index 7a4059972fe..21a91837fa1 100644 --- a/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-french.trsl +++ b/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-french.trsl @@ -1,3 +1,30 @@ +% -------------------------------------------------------------------------- +% the TRANSLATIONS package +% +% internationalization of LaTeX2e packages +% +% -------------------------------------------------------------------------- +% Clemens Niederberger +% Web: http://www.mychemistry.eu/forums/forum/translations +% E-Mail: contact@mychemistry.eu +% -------------------------------------------------------------------------- +% Copyright 2012-2017 Clemens Niederberger +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% 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. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Clemens Niederberger. +% -------------------------------------------------------------------------- +% If you have any ideas, questions, suggestions or bugs to report, please +% feel free to contact me. +% -------------------------------------------------------------------------- \ProvideDictionaryFor{French}{translations-basic-dictionary} \ProvideDictTranslation{Abstract}{R\'{e}sum\'{e}} diff --git a/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-german.trsl b/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-german.trsl index 3d15e2eab3c..107f19fd460 100644 --- a/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-german.trsl +++ b/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-german.trsl @@ -1,3 +1,30 @@ +% -------------------------------------------------------------------------- +% the TRANSLATIONS package +% +% internationalization of LaTeX2e packages +% +% -------------------------------------------------------------------------- +% Clemens Niederberger +% Web: http://www.mychemistry.eu/forums/forum/translations +% E-Mail: contact@mychemistry.eu +% -------------------------------------------------------------------------- +% Copyright 2012-2017 Clemens Niederberger +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% 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. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Clemens Niederberger. +% -------------------------------------------------------------------------- +% If you have any ideas, questions, suggestions or bugs to report, please +% feel free to contact me. +% -------------------------------------------------------------------------- \ProvideDictionaryFor{German}{translations-basic-dictionary} \ProvideDictTranslation{Abstract}{Zusammenfassung} diff --git a/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-spanish.trsl b/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-spanish.trsl index 6ea05db8f32..f7fe606ba54 100644 --- a/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-spanish.trsl +++ b/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-spanish.trsl @@ -1,3 +1,30 @@ +% -------------------------------------------------------------------------- +% the TRANSLATIONS package +% +% internationalization of LaTeX2e packages +% +% -------------------------------------------------------------------------- +% Clemens Niederberger +% Web: http://www.mychemistry.eu/forums/forum/translations +% E-Mail: contact@mychemistry.eu +% -------------------------------------------------------------------------- +% Copyright 2012-2017 Clemens Niederberger +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% 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. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Clemens Niederberger. +% -------------------------------------------------------------------------- +% If you have any ideas, questions, suggestions or bugs to report, please +% feel free to contact me. +% -------------------------------------------------------------------------- \ProvideDictionaryFor{Spanish}{translations-basic-dictionary} \ProvideDictTranslation{Abstract}{Resumen} diff --git a/Master/texmf-dist/tex/latex/translations/translations.sty b/Master/texmf-dist/tex/latex/translations/translations.sty index e3386880aca..6c1d09b5573 100644 --- a/Master/texmf-dist/tex/latex/translations/translations.sty +++ b/Master/texmf-dist/tex/latex/translations/translations.sty @@ -8,7 +8,7 @@ % Web: http://www.mychemistry.eu/forums/forum/translations % E-Mail: contact@mychemistry.eu % -------------------------------------------------------------------------- -% Copyright 2012-2016 Clemens Niederberger +% Copyright 2012-2017 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -25,15 +25,15 @@ % If you have any ideas, questions, suggestions or bugs to report, please % feel free to contact me. % -------------------------------------------------------------------------- -\newcommand*\@trnslt@date{2016/06/02} -\newcommand*\@trnslt@version{v1.4a} -\newcommand*\@trnslt@info{internationalization of LaTeX2e packages} +\newcommand*\@trnslt@date{2017/03/03} +\newcommand*\@trnslt@version{v1.5} +\newcommand*\@trnslt@packageinfo{internationalization of LaTeX2e packages} \ProvidesPackage{translations}[% \@trnslt@date\space \@trnslt@version\space - \@trnslt@info\space (CN)] -\RequirePackage{cnltx-base,scrlfile} + \@trnslt@packageinfo\space (CN)] +\RequirePackage{scrlfile,etoolbox} % -------------------------------------------------------------------------- % message handling @@ -42,30 +42,30 @@ For details have a look at the `translations' manual.% } -% create message macros: -\cnltx@create@generic@message{@trnslt}{translations}{Error}{\@trnslt@error@message} -\cnltx@create@generic@message{@trnslt}{translations}{Warning}{} -\cnltx@create@generic@message{@trnslt}{translations}{WarningNoLine}{} -\cnltx@create@generic@message{@trnslt}{translations}{Info}{} +\newrobustcmd*\@trnslt@info[1]{\PackageInfo{translations}{#1}} +\newrobustcmd*\@trnslt@warning[1]{\PackageWarning{translations}{#1}} +\newrobustcmd*\@trnslt@error[1]{% + \PackageError{translations}{#1}\@trnslt@error@message +} % specific errors: -\newrobustcmd*\@trnslt@err@unknown@lang[1]{\@trnslt@error{Unknown language `#1'}} -\newrobustcmd*\@trnslt@warn@unknown@lang[1]{\@trnslt@warning{Unknown language `#1'}} +\newrobustcmd*\@trnslt@err@unknown@lang[1]{% + \@trnslt@error{Unknown language `#1'}% +} +\newrobustcmd*\@trnslt@warn@unknown@lang[1]{% + \PackageWarning{translations}{Unknown language `#1'}% +} \newrobustcmd*\@trnslt@err@already@defined[2]{% \@trnslt@error{The #2 translation for `#1' is already defined.}% } \newrobustcmd*\@trnslt@err@not@defined[2]{% - \@trnslt@error{% - The \@trnslt@language{#2} translation for `#1' is not defined yet.% - }% + \@trnslt@error{The \@trnslt@language{#2} translation for `#1' is not defined yet.}% } \newrobustcmd*\@trnslt@err@dict@already@defined[2]{% \@trnslt@error{The #2 dictionary entry for `#1' is already defined.}% } \newrobustcmd*\@trnslt@err@dict@not@defined[2]{% - \@trnslt@error{% - The \@trnslt@language{#2} dictionary entry for `#1' is not defined yet.% - }% + \@trnslt@error{The \@trnslt@language{#2} dictionary entry for `#1' is not defined yet.}% } % -------------------------------------------------------------------------- @@ -85,6 +85,40 @@ } % -------------------------------------------------------------------------- +% test string equality, expandably: +\newcommand\@trnslt@ifstrequal[2]{% + \ifnum\pdf@strcmp{\unexpanded{#1}}{\unexpanded{#2}}=\z@ + \expandafter\@firstoftwo + \else + \expandafter\@secondoftwo + \fi +} + +% a check for etoolbox's lists where items may contain braces: +\newbool{@trnslt@inlist} +\newrobustcmd\@trnslt@ifinlist@type[5]{% + \def\do##1{% + \boolfalse{@trnslt@inlist}% + \ifstrequal{##1}{#2} + {\booltrue{@trnslt@inlist}\listbreak} + {}% + }% + #1{#3}% + \ifbool{@trnslt@inlist} + {#4} + {#5}% +} +\newrobustcmd*\@trnslt@ifinlist{\@trnslt@ifinlist@type\dolistloop} +\newrobustcmd*\@trnslt@ifinlistcs{\@trnslt@ifinlist@type\dolistcsloop} + +\long\def\@trnslt@getnext@braced#1#2#3{#2\@trnslt@firstofone{#3{#1}}} +\long\def\@trnslt@firstofone#1{#1} +\long\def\@trnslt@braced@expanded@fully#1\@trnslt@firstofone#2#3{% + \expandafter\@trnslt@getnext@braced + \expandafter{\romannumeral-`0#3}{#1}{#2}% +} + +% -------------------------------------------------------------------------- % book keeping: the following macros will be used as `etoolbox' lists that % keep record of defined languages, dialects and aliases \newcommand*\@trnslt@languages{}% all languages @@ -218,7 +252,7 @@ \@trnslt@if@dialect{#2} {\csletcs{@trnslt@dialect@#1}{@trnslt@dialect@#2}} {}% - \ifinlist{#1}\@trnslt@aliases@single + \@trnslt@ifinlist{#1}\@trnslt@aliases@single {}{% \csdef{@trnslt@alias@#1}{#2}% \listeadd\@trnslt@aliases@pair{{#1}{#2}}% @@ -239,10 +273,10 @@ % #2: true % #3: false \newcommand*\@trnslt@iflanguage[1]{% - \cnltx@braced@expanded@fully - \cnltx@braced@expanded@fully - \cnltx@firstofone - \cnltx@ifstrequal + \@trnslt@braced@expanded@fully + \@trnslt@braced@expanded@fully + \@trnslt@firstofone + \@trnslt@ifstrequal {\@trnslt@language{#1}} {\@trnslt@language{\languagename}}% } @@ -251,10 +285,10 @@ \newcommand*\@trnslt@ifbaselanguage[1]{% \@trnslt@if@dialect{\languagename} {% - \cnltx@braced@expanded@fully - \cnltx@braced@expanded@fully - \cnltx@firstofone - \cnltx@ifstrequal + \@trnslt@braced@expanded@fully + \@trnslt@braced@expanded@fully + \@trnslt@firstofone + \@trnslt@ifstrequal {\@trnslt@language{\@trnslt@dialect@of{\languagename}}} {\@trnslt@language{#1}}% } @@ -597,8 +631,6 @@ }% } -% \newcommand*\@trnslt@if@dictionary[2]{\IfFileExists{#1-#2.trsl}} - % -------------------------------------------------------------------------- % the contents of a dictionary; let's declare that is one. % #1: lang @@ -615,7 +647,7 @@ % this macro can be used to check if we have a dictionary and will also be % used as a list for the dictionary entries: \csdef{@trnslt@dictionary@\@trnslt@dictionary@name @\@trnslt@dictionary@lang}{}% - \@ifnextchar[ + \@ifnextchar[ % ] {\@trnslt@provide@dictionary@version} { \ProvidesFile @@ -631,7 +663,7 @@ % change this test (we can't use braces inside the item with \ifinlist): \newcommand*\@trnslt@check@dictionary@entry[2]{% - \cnltx@ifinlistcs + \@trnslt@ifinlistcs {{#1}{#2}} {@trnslt@dictionary@\@trnslt@dictionary@name @\@trnslt@dictionary@lang}% } @@ -1031,27 +1063,6 @@ % -------------------------------------------------------------------------- % load basic dictionary if available \AtBeginDocument{% - % \@trnslt@if@dialect{\@trnslt@current@language} - % {% - % \@trnslt@if@dictionary - % {translations-basic-dictionary} - % {\@trnslt@language{\@trnslt@current@language}}% - % {% - % \@trnslt@load@dictionary@silent@for - % {translations-basic-dictionary} - % {\@trnslt@language{\@trnslt@current@language}}% - % }% - % {% - % \@trnslt@load@dictionary@silent@for - % {translations-basic-dictionary} - % {\@trnslt@dialect@of{\@trnslt@current@language}}% - % } - % } - % {% - % \@trnslt@load@dictionary@silent@for - % {translations-basic-dictionary} - % {\@trnslt@language{\@trnslt@current@language}}% - % }% \@trnslt@load@dictionary@silent@for {translations-basic-dictionary} \@trnslt@current@language @@ -1137,3 +1148,6 @@ - fallback versions for each definition command 2016/06/02 v1.4a - rename new commands: they conflict with the translator package! +2017/03/03 v1.5 - remove dependency on cnltx-base + - add Dutch dictionary (thanks to kwikwi) + |