From eb35f681a60c0e2d0829962cc50bd0f65917ec19 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 3 Mar 2017 23:15:43 +0000 Subject: translations (3mar17) git-svn-id: svn://tug.org/texlive/trunk@43392 c570f23f-e606-0410-a88d-b1316a301751 --- .../translations-basic-dictionary-dutch.trsl | 136 +++++++++++++++++++++ .../translations-basic-dictionary-english.trsl | 27 ++++ .../translations-basic-dictionary-french.trsl | 27 ++++ .../translations-basic-dictionary-german.trsl | 27 ++++ .../translations-basic-dictionary-spanish.trsl | 27 ++++ .../tex/latex/translations/translations.sty | 120 ++++++++++-------- 6 files changed, 311 insertions(+), 53 deletions(-) create mode 100644 Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-dutch.trsl (limited to 'Master/texmf-dist/tex/latex/translations') 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.}% } % -------------------------------------------------------------------------- @@ -84,6 +84,40 @@ {\long\def\bbl@afterfi#1\fi{\fi#1}} } +% -------------------------------------------------------------------------- +% 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 @@ -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) + -- cgit v1.2.3