diff options
author | Karl Berry <karl@freefriends.org> | 2021-09-20 20:02:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-09-20 20:02:14 +0000 |
commit | 386db97a7b843f42e1b0cce508ef13b2893695f0 (patch) | |
tree | bb9a8947fac16074874d42ffcf8a71bd467bc890 /Master/texmf-dist/tex/latex | |
parent | d313b30f43011c10220b10b39e52de01aca9226e (diff) |
schooldocs (20sep21)
git-svn-id: svn://tug.org/texlive/trunk@60560 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/schooldocs/schooldocs.sty | 81 |
1 files changed, 40 insertions, 41 deletions
diff --git a/Master/texmf-dist/tex/latex/schooldocs/schooldocs.sty b/Master/texmf-dist/tex/latex/schooldocs/schooldocs.sty index 3b1e3158819..ff5c96d8f71 100644 --- a/Master/texmf-dist/tex/latex/schooldocs/schooldocs.sty +++ b/Master/texmf-dist/tex/latex/schooldocs/schooldocs.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2020 by Antoine Missier <antoine.missier@ac-toulouse.fr> +%% Copyright (C) 2020-2021 by Antoine Missier <antoine.missier@ac-toulouse.fr> %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3 of this license @@ -22,7 +22,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesPackage{schooldocs} - [2020/07/13 v1.0 .dtx schooldocs file] + [2021/09/18 v1.1 .dtx schooldocs file] \ProvidesPackage{schooldocs} \NeedsTeXFormat{LaTeX2e} @@ -33,50 +33,49 @@ \RequirePackage{lastpage} \RequirePackage{fancybox} \RequirePackage{xcolor} +\RequirePackage{translations} \geometry{scale=0.75,vmarginratio=3:4,heightrounded} -\providecommand{\pagename}{page} -\def\correctname{Correct version} -\def\identityname{Name:} -\def\identityforename{Forename:} +\DeclareTranslationFallback{schooldocs-pagename}{page} +\DeclareTranslationFallback{schooldocs-correct}{Correct version} +\DeclareTranslationFallback{schooldocs-name}{Name:} +\DeclareTranslationFallback{schooldocs-forename}{Forename:} -\newcommand\schooldocstranslate{% - \@ifpackageloaded{babel}{% - \addto\captionsfrench{% - \def\correctname{Corrig\'e} - \def\identityname{Nom :} - \def\identityforename{Pr\'enom :} - } - \addto\captionsgerman{% - \def\pagename{Seite} - \def\correctname{Musterl\"osung} - \def\identityname{Name :} - \def\identityforename{Vorname :} - } - \addto\captionsspanish{% - \def\pagename{p\'agina} - \def\correctname{Correccion} - \def\identityname{Apellido:} - \def\identityforename{Nombre:} - } - \addto\captionsitalian{% - \def\pagename{Seite} - \def\correctname{Corretto} - \def\identityname{Nome :} - \def\identityforename{Conome :} - } - \addto\captionsportuges{% - \def\pagename{p\'agina} - \def\correctname{Corrigiu} - \def\identityname{Nome :} - \def\identityforename{Primeiro nome :} - } - }{} - } +\DeclareTranslation{english}{schooldocs-pagename}{page} +\DeclareTranslation{english}{schooldocs-correct}{Correct version} +\DeclareTranslation{english}{schooldocs-name}{Name:} +\DeclareTranslation{english}{schooldocs-forename}{Forename:} + +\DeclareTranslation{french}{schooldocs-pagename}{page} +\DeclareTranslation{french}{schooldocs-correct}{Corrigé} +\DeclareTranslation{french}{schooldocs-name}{Nom :} +\DeclareTranslation{french}{schooldocs-forename}{Prénom :} + +\DeclareTranslation{german}{schooldocs-pagename}{Seite} +\DeclareTranslation{german}{schooldocs-correct}{Musterlösung} +\DeclareTranslation{german}{schooldocs-name}{Name:} +\DeclareTranslation{german}{schooldocs-forename}{Vorname:} + +\DeclareTranslation{spanish}{schooldocs-pagename}{página} +\DeclareTranslation{spanish}{schooldocs-correct}{Correccion} +\DeclareTranslation{spanish}{schooldocs-name}{Apellido:} +\DeclareTranslation{spanish}{schooldocs-forename}{Nombre:} + +\DeclareTranslation{italian}{schooldocs-pagename}{pagina} +\DeclareTranslation{italian}{schooldocs-correct}{Corretto} +\DeclareTranslation{italian}{schooldocs-name}{Nome:} +\DeclareTranslation{italian}{schooldocs-forename}{Conome:} + +\DeclareTranslation{portuges}{schooldocs-pagename}{página} +\DeclareTranslation{portuges}{schooldocs-correct}{Corrigiu} +\DeclareTranslation{portuges}{schooldocs-name}{Nome:} +\DeclareTranslation{portuges}{schooldocs-forename}{Primeiro nome:} -\AtBeginDocument{\schooldocstranslate} % if loaded before babel -\schooldocstranslate % necessary when loaded after babel +\newcommand*\pagename{\GetTranslation{schooldocs-pagename}} +\newcommand*\correctname{\GetTranslation{schooldocs-correct}} +\newcommand*\identityname{\GetTranslation{schooldocs-name}} +\newcommand*\identityforename{\GetTranslation{schooldocs-forename}} \renewcommand{\title}[2][]{\long\def\@title{#2} \ifthenelse{\equal{#1}{}}{\def\@headtitle{#2}}{\def\@headtitle{#1}} |