diff options
author | Karl Berry <karl@freefriends.org> | 2015-09-06 23:20:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-09-06 23:20:14 +0000 |
commit | 1d472d214213c24b5cd6fc136a8834c121ebf922 (patch) | |
tree | 2d42ff52d05214502f9f29bf050921133edb2fc7 /Master/texmf-dist/tex/latex | |
parent | 36ca69fa1454d2fc9f7034b7486051219212f60f (diff) |
translations (6sep15)
git-svn-id: svn://tug.org/texlive/trunk@38308 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/translations/translations.sty | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/translations/translations.sty b/Master/texmf-dist/tex/latex/translations/translations.sty index 789f5eb19d6..c3c76c0a132 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. % -------------------------------------------------------------------------- -\def\@trnslt@date{2015/08/29} -\def\@trnslt@version{v1.2c} +\def\@trnslt@date{2015/09/06} +\def\@trnslt@version{v1.2d} \def\@trnslt@info{internationalization of LaTeX2e packages} \ProvidesPackage{translations}[% @@ -350,6 +350,8 @@ \fi }% +% #1: word +% #2: language \newcommand*\@trnslt@if@translation[2]{% \@trnslt@if@word\@trnslt@language{#1}{#2} {\expandafter\@firstoftwo} @@ -368,6 +370,10 @@ }% } +% #1: language +% #2: word +\newcommand*\IfTranslation[2]{\@trnslt@if@translation{#2}{#1}} + % -------------------------------------------------------------------------- % We also need to be able to look up a translation: % \GetTranslationFor and \GetTranslation @@ -904,6 +910,8 @@ \DeclareLanguageAlias {Croatian}{croatian} \DeclareLanguageAlias {Slovak}{slovak} \DeclareLanguageAlias {Slovenian}{slovenian} +\DeclareLanguageAlias {slovene}{slovenian} +\DeclareLanguageAlias {Slovene}{slovene} \DeclareLanguageAlias {Sorbian}{sorbian} \DeclareLanguageDialect{lowersorbian}{sorbian} \DeclareLanguageDialect{uppersorbian}{sorbian} @@ -1029,4 +1037,5 @@ available as \@trnslt@language) 2015/07/09 v1.2b - add language `korean' 2015/08/29 v1.2c - fix bug in \@trnslt@save@translation@for - +2015/09/06 v1.2d - add alias `slovene' for `slovenian' + - add user command for \@trnslt@if@translation |