summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-11-08 21:43:31 +0000
committerKarl Berry <karl@freefriends.org>2020-11-08 21:43:31 +0000
commit4b063d6d5bcf0f68a9a2f4158759f06a1817e8fd (patch)
treeeb5c0df7f5667605d3b33f55fc87a5d4a1d8f5b2 /Master
parent3bf10794f6f92b2d3bf52691e002ef8150432010 (diff)
translations (8nov20)
git-svn-id: svn://tug.org/texlive/trunk@56889 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/translations/README9
-rw-r--r--Master/texmf-dist/doc/latex/translations/translations_en.pdfbin500132 -> 497802 bytes
-rw-r--r--Master/texmf-dist/doc/latex/translations/translations_en.tex24
-rw-r--r--Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-brazil.trsl136
-rw-r--r--Master/texmf-dist/tex/latex/translations/translations.sty48
5 files changed, 202 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/latex/translations/README b/Master/texmf-dist/doc/latex/translations/README
index 4f93dfa1da8..e9a9f012f8b 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.8b - 2020/04/28
+the TRANSLATIONS package v1.9 - 2020/11/08
internationalization of LaTeX2e packages
--------------------------------------------------------------------------
@@ -10,12 +10,12 @@ E-Mail: contact@mychemistry.eu
Copyright 2012--2020 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'.
@@ -23,6 +23,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-brazil.trsl,
translations-basic-dictionary-catalan.trsl,
translations-basic-dictionary-english.trsl,
translations-basic-dictionary-dutch.trsl,
diff --git a/Master/texmf-dist/doc/latex/translations/translations_en.pdf b/Master/texmf-dist/doc/latex/translations/translations_en.pdf
index 427707ca89e..fea9e5ce3fc 100644
--- a/Master/texmf-dist/doc/latex/translations/translations_en.pdf
+++ b/Master/texmf-dist/doc/latex/translations/translations_en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/translations/translations_en.tex b/Master/texmf-dist/doc/latex/translations/translations_en.tex
index 340eaafac8d..7118e67b3e6 100644
--- a/Master/texmf-dist/doc/latex/translations/translations_en.tex
+++ b/Master/texmf-dist/doc/latex/translations/translations_en.tex
@@ -1,7 +1,7 @@
-% arara: pdflatex: { shell: on, interaction: nonstopmode }
+% !arara: pdflatex: { shell: on, interaction: nonstopmode }
% !arara: biber
-% !arara: pdflatex
-% !arara: pdflatex
+% arara: pdflatex
+% arara: pdflatex
% --------------------------------------------------------------------------
% the TRANSLATIONS package
%
@@ -30,7 +30,7 @@
% feel free to contact me.
% --------------------------------------------------------------------------
\documentclass[load-preamble]{cnltx-doc}
-\usepackage[french,spanish,ngerman,english]{babel}
+\usepackage[french,brazil,spanish,ngerman,english]{babel}
% ----------------------------------------------------------------------------
\usepackage{imakeidx}
% document layout and typographic features
@@ -52,6 +52,8 @@
declaretranslationfallback,
GetTranslation,
GetTranslationFor,
+ ifcurrentbaselang,
+ ifcurrentlang,
IfTranslation,
LoadDictionary,
LoadDictionaryFor,
@@ -98,7 +100,8 @@
% ----------------------------------------------------------------------------
% other packages, bibliography, index
\usepackage{array,longtable,booktabs}
-\AfterPackage!{hyperref}{\usepackage[sort]{cleveref}}
+\usepackage{hyperref}
+\usepackage[sort]{cleveref}
% ----------------------------------------------------------------------------
% example definitions that have to be done in the preamble:
@@ -115,6 +118,8 @@
\newrobustcmd\fnote[1]{\textsuperscript{#1}}
+\tracingmacros=1
+
\begin{document}
\section{Motivation}
@@ -423,12 +428,18 @@ Commands without the marker aren't expandable.
\sinceversion{1.2}Places \meta{true} in the input stream if the current
language is \meta{lang}. Note: a dialect counts as a language of it's own
here. \cs{ifcurrentlanguage}\Marg{English} will for example be
- \meta{false} if the current \pkg{babel} language is \code{american}.
+ \meta{false} if the current \pkg{babel} language is \code{american}.
+ \expandable\command{ifcurrentlang}[\marg{lang}]
+ \sinceversion{1.9}The same as \cs{ifcurrentlanguage} but uses the
+ \dots\cs{else}\dots\cs*{fi} syntax.
\expandable\command{ifcurrentbaselanguage}[\marg{lang}\marg{true}\marg{false}]
\sinceversion{1.2}Places \meta{true} in the input stream if the current
language is \meta{lang}. Note: a dialect does not count as a language of
it's own here. If the current \pkg{babel} language is \code{american}
then \cs{ifcurrentbaselanguage}\Marg{English} will be \meta{true}.
+ \expandable\command{ifcurrentbaselang}[\marg{lang}]
+ \sinceversion{1.9}The same as \cs{ifcurrentbaselanguage} but uses the
+ \dots\cs{else}\dots\cs*{fi} syntax.
\end{commands}
\subsection{A Small Example}
@@ -617,6 +628,7 @@ 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
\begin{itemize}
+ \item Brazilian,
\item Catalan,
\item English,
\item Dutch,
diff --git a/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-brazil.trsl b/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-brazil.trsl
new file mode 100644
index 00000000000..9d0c440480a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/translations/translations-basic-dictionary-brazil.trsl
@@ -0,0 +1,136 @@
+% --------------------------------------------------------------------------
+% the TRANSLATIONS package
+%
+% internationalization of LaTeX2e packages
+%
+% --------------------------------------------------------------------------
+% Clemens Niederberger
+% Web: https://github.com/cgnieder/translations
+% E-Mail: contact@mychemistry.eu
+% --------------------------------------------------------------------------
+% Copyright 2012--2020 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{Brazil}{translations-basic-dictionary}
+
+\ProvideDictTranslation{Abstract}{Resumo}
+\ProvideDictTranslation{Addresses}{Endere\c{c}os}
+\ProvideDictTranslation{addresses}{endere\c{c}os}
+\ProvideDictTranslation{Address}{Endere\c{c}o}
+\ProvideDictTranslation{address}{Endere\c{c}o}
+\ProvideDictTranslation{and}{e}
+\ProvideDictTranslation{Appendix}{Ap\^{e}ndice}
+\ProvideDictTranslation{Authors}{Autores}
+\ProvideDictTranslation{authors}{autores}
+\ProvideDictTranslation{Author}{Autor}
+\ProvideDictTranslation{author}{autor}
+\ProvideDictTranslation{Bibliography}{Bibliografia}
+\ProvideDictTranslation{cc}{c\slash{c}}
+\ProvideDictTranslation{Chapters}{Cap\'{i}tulos}
+\ProvideDictTranslation{chapters}{cap\'{i}tulos}
+\ProvideDictTranslation{Chapter}{Cap\'{i}tulo}
+\ProvideDictTranslation{chapter}{cap\'{i}tulo}
+\ProvideDictTranslation{Conclusion}{Conclus\~{a}o}
+\ProvideDictTranslation{conclusion}{conclus\~{a}o}
+\ProvideDictTranslation{Contents}{Conte\'{u}do}
+\ProvideDictTranslation{Continuation}{Continua\c{c}\~{a}o}
+\ProvideDictTranslation{continuation}{continua\c{c}\~{a}o}
+\ProvideDictTranslation{cont}{cont.}
+\ProvideDictTranslation{encl (plural)}{anexos}
+\ProvideDictTranslation{encl (singular)}{anexo}
+\ProvideDictTranslation{encl}{anexo}
+\ProvideDictTranslation{Figures}{Figuras}
+\ProvideDictTranslation{figures}{figuras}
+\ProvideDictTranslation{Figure}{Figura}
+\ProvideDictTranslation{figure}{figura}
+\ProvideDictTranslation{From}{De}
+\ProvideDictTranslation{from}{de}
+\ProvideDictTranslation{Glossary}{Gloss\'{a}rio}
+\ProvideDictTranslation{Index}{\'{I}ndice}
+\ProvideDictTranslation{Introduction}{Introdu\c{c}\~{a}o}
+\ProvideDictTranslation{introduction}{introdu\c{c}\~{a}o}
+\ProvideDictTranslation{List of Figures and Tables}{Lista de Figuras e Tabelas}
+\ProvideDictTranslation{List of Figures}{Lista de Figuras}
+\ProvideDictTranslation{List of Tables}{Lista de Tabelas}
+\ProvideDictTranslation{or}{ou}
+\ProvideDictTranslation{Outline}{T\'{o}picos}
+\ProvideDictTranslation{Overview}{Vis\~{a}o Geral}
+\ProvideDictTranslation{Pages}{P\'{a}ginas}
+\ProvideDictTranslation{pages}{p\'{a}ginas}
+\ProvideDictTranslation{Page}{P\'{a}gina}
+\ProvideDictTranslation{page}{p\'{a}gina}
+\ProvideDictTranslation{Paragraphs}{Par\'{a}grafos}
+\ProvideDictTranslation{paragraphs}{par\'{a}grafos}
+\ProvideDictTranslation{Paragraph}{Par\'{a}grafo}
+\ProvideDictTranslation{paragraph}{par\'{a}grafo}
+\ProvideDictTranslation{Parts}{Partes}
+\ProvideDictTranslation{parts}{partes}
+\ProvideDictTranslation{Part}{Parte}
+\ProvideDictTranslation{part}{parte}
+\ProvideDictTranslation{Preface}{Pref\'{a}cio}
+\ProvideDictTranslation{Proofs}{Demonstra\c{c}\~{o}es}
+\ProvideDictTranslation{proofs}{demonstra\c{c}\~{o}es}
+\ProvideDictTranslation{Proof}{Demonstra\c{c}\~{a}o}
+\ProvideDictTranslation{proof}{demonstra\c{c}\~{a}o}
+\ProvideDictTranslation{References}{Refer\^{e}ncias}
+\ProvideDictTranslation{Related work}{Trabalho Relacionado}
+\ProvideDictTranslation{Related Work}{Trabalho relacionado}
+\ProvideDictTranslation{Sections}{Se\c{c}\~{o}es}
+\ProvideDictTranslation{sections}{se\c{c}\~{o}es}
+\ProvideDictTranslation{Section}{Se\c{c}\~{a}o}
+\ProvideDictTranslation{section}{se\c{c}\~{a}o}
+\ProvideDictTranslation{See also}{Ver tamb\'{e}m}
+\ProvideDictTranslation{see also}{ver tamb\'{e}m}
+\ProvideDictTranslation{See}{Ver}
+\ProvideDictTranslation{see}{ver}
+\ProvideDictTranslation{Sketch of Proofs}{Esboço de Demonstra\c{c}\~{o}es}
+\ProvideDictTranslation{Sketch of proofs}{Esboço de demonstra\c{c}\~{o}es}
+\ProvideDictTranslation{Sketch of Proof}{Esboço de Demonstra\c{c}\~{a}o}
+\ProvideDictTranslation{Sketch of proof}{Esboço de demonstra\c{c}\~{a}o}
+\ProvideDictTranslation{Subsections}{Subse\c{c}\~{o}es}
+\ProvideDictTranslation{subsections}{subse\c{c}\~{o}es}
+\ProvideDictTranslation{Subsection}{Subse\c{c}\~{a}o}
+\ProvideDictTranslation{subsection}{subse\c{c}\~{a}o}
+\ProvideDictTranslation{Summary}{Sum\'{a}rio}
+\ProvideDictTranslation{Tables}{Tabelas}
+\ProvideDictTranslation{tables}{tabelas}
+\ProvideDictTranslation{Table}{Tabela}
+\ProvideDictTranslation{table}{tabela}
+\ProvideDictTranslation{To}{Para}
+\ProvideDictTranslation{to}{para}
+
+\ProvideDictTranslation{Monday}{Segunda-feira}
+\ProvideDictTranslation{Tuesday}{Terça-feira}
+\ProvideDictTranslation{Wednesday}{Quarta-feira}
+\ProvideDictTranslation{Thursday}{Quinta-feira}
+\ProvideDictTranslation{Friday}{Sexta-feira}
+\ProvideDictTranslation{Saturday}{S\'{a}bado}
+\ProvideDictTranslation{Sunday}{Domingo}
+
+\ProvideDictTranslation{January}{Janeiro}
+\ProvideDictTranslation{February}{Fevereiro}
+\ProvideDictTranslation{March}{Mar\c{c}o}
+\ProvideDictTranslation{April}{Abril}
+\ProvideDictTranslation{May}{Maio}
+\ProvideDictTranslation{June}{Junho}
+\ProvideDictTranslation{July}{Julho}
+\ProvideDictTranslation{August}{Agosto}
+\ProvideDictTranslation{September}{Setembro}
+\ProvideDictTranslation{October}{Outubro}
+\ProvideDictTranslation{November}{Novembro}
+\ProvideDictTranslation{December}{Dezembro}
+
diff --git a/Master/texmf-dist/tex/latex/translations/translations.sty b/Master/texmf-dist/tex/latex/translations/translations.sty
index 1749329c9b2..49418ecc85a 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/28}
-\newcommand*\@trnslt@version{v1.8b}
+\newcommand*\@trnslt@date{2020/11/08}
+\newcommand*\@trnslt@version{v1.9}
\newcommand*\@trnslt@packageinfo{internationalization of LaTeX2e packages}
\ProvidesPackage{translations}[%
@@ -86,14 +86,18 @@
% --------------------------------------------------------------------------
% test string equality, expandably:
-\newcommand\@trnslt@ifstrequal[2]{%
- \ifnum\pdf@strcmp{\unexpanded{#1}}{\unexpanded{#2}}=\z@
+\newcommand\@trnslt@ifstrequalTF[2]{%
+ \@trnslt@ifstrequal{#1}{#2}%
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi
}
+\newcommand\@trnslt@ifstrequal[2]{%
+ \ifnum\pdf@strcmp{\unexpanded{#1}}{\unexpanded{#2}}=\z@
+}
+
\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{%
@@ -258,6 +262,15 @@
% #1: language
% #2: true
% #3: false
+\newcommand*\@trnslt@iflanguageTF[1]{%
+ \@trnslt@braced@expanded@fully
+ \@trnslt@braced@expanded@fully
+ \@trnslt@firstofone
+ \@trnslt@ifstrequalTF
+ {\@trnslt@language{#1}}
+ {\@trnslt@language{\languagename}}%
+}
+
\newcommand*\@trnslt@iflanguage[1]{%
\@trnslt@braced@expanded@fully
\@trnslt@braced@expanded@fully
@@ -268,6 +281,19 @@
}
% check the current /base/ language, expandably:
+\newcommand*\@trnslt@ifbaselanguageTF[1]{%
+ \@trnslt@if@dialect{\languagename}
+ {%
+ \@trnslt@braced@expanded@fully
+ \@trnslt@braced@expanded@fully
+ \@trnslt@firstofone
+ \@trnslt@ifstrequalTF
+ {\@trnslt@language{\@trnslt@dialect@of{\languagename}}}
+ {\@trnslt@language{#1}}%
+ }
+ {\@trnslt@iflanguageTF{#1}}%
+}
+
\newcommand*\@trnslt@ifbaselanguage[1]{%
\@trnslt@if@dialect{\languagename}
{%
@@ -283,9 +309,16 @@
% user commands for the above:
\newcommand*\ifcurrentlanguage[1]{%
- \@trnslt@iflanguage{#1}%
+ \@trnslt@iflanguageTF{#1}%
}
\newcommand*\ifcurrentbaselanguage[1]{%
+ \@trnslt@ifbaselanguageTF{#1}%
+}
+
+\newcommand*\ifcurrentlang[1]{%
+ \@trnslt@iflanguage{#1}%
+}
+\newcommand*\ifcurrentbaselang[1]{%
\@trnslt@ifbaselanguage{#1}%
}
@@ -1196,3 +1229,8 @@
available)
2020/04/26 v1.8a - fix problem with loading of dictionaries in some
circumstances
+2020/04/28 v1.8b - fix issue #9
+2020/11/08 v1.9 - add \ifcurrentlang{<lang>} ... \else ... \fi
+ - add \ifcurrentbaselang{<lang>} ... \else ... \fi
+ - add Brazilian basic dictionary
+