diff options
author | Karl Berry <karl@freefriends.org> | 2019-07-07 20:21:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-07-07 20:21:15 +0000 |
commit | 4bb8268658d74c470f29e6f75b2e7dca72b0f134 (patch) | |
tree | 39b0274415cb012b47bd17d49d0ac4aa08d6d683 /Master/texmf-dist/tex/latex/changelog | |
parent | d2feb6daf6bb87d92a2a816be0e5c0633ea29e3a (diff) |
changelog (7jul19)
git-svn-id: svn://tug.org/texlive/trunk@51574 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/changelog')
-rw-r--r-- | Master/texmf-dist/tex/latex/changelog/changelog.sty | 57 |
1 files changed, 47 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/changelog/changelog.sty b/Master/texmf-dist/tex/latex/changelog/changelog.sty index 403ebbddbde..491e78d7548 100644 --- a/Master/texmf-dist/tex/latex/changelog/changelog.sty +++ b/Master/texmf-dist/tex/latex/changelog/changelog.sty @@ -1,4 +1,4 @@ -\ProvidesPackage{changelog}[2019/04/15 2.0.0 Typesetting changelogs] +\ProvidesPackage{changelog}[2019/07/06 2.1.0 Typesetting changelogs] % Description: Provides the changelog environment for typesetting changelogs % License: LPPL 1.3c % Homepage: https://github.com/9999years/latex-changelog @@ -21,6 +21,43 @@ \RequirePackage{xparse} \RequirePackage{xkeyval} +\RequirePackage{translations} + +% See https://github.com/olivierlacan/keep-a-changelog/issues/195 +% for a discussion about the term yanked + +% Fallback translations will be used if there is no translation for +% the current document language +\DeclareTranslationFallback{changelog-Added}{Added} +\DeclareTranslationFallback{changelog-Changed}{Changed} +\DeclareTranslationFallback{changelog-Deprecated}{Deprecated} +\DeclareTranslationFallback{changelog-Removed}{Removed} +\DeclareTranslationFallback{changelog-Fixed}{Fixed} +\DeclareTranslationFallback{changelog-Security}{Security} +\DeclareTranslationFallback{changelog-Miscellaneous}{Miscellaneous} +\DeclareTranslationFallback{changelog-Unreleased}{Unreleased} +\DeclareTranslationFallback{changelog-Yanked}{YANKED} +% English translations +\DeclareTranslation{English}{changelog-Added}{Added} +\DeclareTranslation{English}{changelog-Changed}{Changed} +\DeclareTranslation{English}{changelog-Deprecated}{Deprecated} +\DeclareTranslation{English}{changelog-Removed}{Removed} +\DeclareTranslation{English}{changelog-Fixed}{Fixed} +\DeclareTranslation{English}{changelog-Security}{Security} +\DeclareTranslation{English}{changelog-Miscellaneous}{Miscellaneous} +\DeclareTranslation{English}{changelog-Unreleased}{Unreleased} +\DeclareTranslation{English}{changelog-Yanked}{YANKED} +% German translations +% Alternative german translations as comment at the end of the line +\DeclareTranslation{German}{changelog-Added}{Hinzugef\"{u}gt}% Neu +\DeclareTranslation{German}{changelog-Changed}{Ge\"{a}ndert} +\DeclareTranslation{German}{changelog-Deprecated}{Überholt}% Veraltet +\DeclareTranslation{German}{changelog-Removed}{Entfernt} +\DeclareTranslation{German}{changelog-Fixed}{Behoben}% Fehlerbehebung +\DeclareTranslation{German}{changelog-Security}{Sicherheit} +\DeclareTranslation{German}{changelog-Miscellaneous}{Verschiedenes} +\DeclareTranslation{German}{changelog-Unreleased}{Unver\"{o}ffentlicht} +\DeclareTranslation{German}{changelog-Yanked}{Zur{\"u}ckgezogen} \newif\ifchangelog@versionfirst \newcommand{\changelog@item}[1]{% @@ -34,16 +71,16 @@ \begin{changelogitemize}% } -\newcommand{\changelogyanked}{\fbox{\textbf{YANKED}}} +\newcommand{\changelogyanked}{\fbox{\textbf{\GetTranslation{changelog-Yanked}}}} \newcommand{\changelog@sectioncmds}{ - \newcommand{\added} {\changelog@item{Added}} - \newcommand{\changed} {\changelog@item{Changed}} - \newcommand{\deprecated}{\changelog@item{Deprecated}} - \newcommand{\removed} {\changelog@item{Removed}} - \newcommand{\fixed} {\changelog@item{Fixed}} - \newcommand{\security} {\changelog@item{Security}} - \newcommand{\misc} {\changelog@item{Miscellaneous}} + \newcommand{\added} {\changelog@item{\GetTranslation{changelog-Added}}} + \newcommand{\changed} {\changelog@item{\GetTranslation{changelog-Changed}}} + \newcommand{\deprecated}{\changelog@item{\GetTranslation{changelog-Deprecated}}} + \newcommand{\removed} {\changelog@item{\GetTranslation{changelog-Removed}}} + \newcommand{\fixed} {\changelog@item{\GetTranslation{changelog-Fixed}}} + \newcommand{\security} {\changelog@item{\GetTranslation{changelog-Security}}} + \newcommand{\misc} {\changelog@item{\GetTranslation{changelog-Miscellaneous}}} } \define@cmdkeys{version}{author, version, date, changes} @@ -74,7 +111,7 @@ \newcommand{\changelog@shortversion@definedate}{% \@ifundefined{cmdKV@version@version}{ \@ifundefined{cmdKV@version@date}{ - \newcommand{\cmdKV@version@version}{Unreleased} + \newcommand{\cmdKV@version@version}{\GetTranslation{changelog-Unreleased}} \let\cmdKV@version@date\today }{% \let\cmdKV@version@version\cmdKV@version@date |