texlive[45189] Master/texmf-dist: translations (31aug17)

commits+karl at tug.org commits+karl at tug.org
Fri Sep 1 03:34:27 CEST 2017


Revision: 45189
          http://tug.org/svn/texlive?view=revision&revision=45189
Author:   karl
Date:     2017-09-01 03:34:26 +0200 (Fri, 01 Sep 2017)
Log Message:
-----------
translations (31aug17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/translations/README
    trunk/Master/texmf-dist/doc/latex/translations/translations_en.pdf
    trunk/Master/texmf-dist/doc/latex/translations/translations_en.tex
    trunk/Master/texmf-dist/tex/latex/translations/translations.sty

Modified: trunk/Master/texmf-dist/doc/latex/translations/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/translations/README	2017-09-01 01:34:10 UTC (rev 45188)
+++ trunk/Master/texmf-dist/doc/latex/translations/README	2017-09-01 01:34:26 UTC (rev 45189)
@@ -1,5 +1,5 @@
 --------------------------------------------------------------------------
-the TRANSLATIONS package v1.6 - 2017/05/16
+the TRANSLATIONS package v1.7a - 2017/08/31
   internationalization of LaTeX2e packages
 
 --------------------------------------------------------------------------

Modified: trunk/Master/texmf-dist/doc/latex/translations/translations_en.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/translations/translations_en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/translations/translations_en.tex	2017-09-01 01:34:10 UTC (rev 45188)
+++ trunk/Master/texmf-dist/doc/latex/translations/translations_en.tex	2017-09-01 01:34:26 UTC (rev 45189)
@@ -1,5 +1,5 @@
 % !arara: pdflatex: { shell: on }
-% arara: biber
+% !arara: biber
 % arara: pdflatex
 % arara: pdflatex
 % --------------------------------------------------------------------------

Modified: trunk/Master/texmf-dist/tex/latex/translations/translations.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/translations/translations.sty	2017-09-01 01:34:10 UTC (rev 45188)
+++ trunk/Master/texmf-dist/tex/latex/translations/translations.sty	2017-09-01 01:34:26 UTC (rev 45189)
@@ -25,8 +25,8 @@
 % If you have any ideas, questions, suggestions or bugs to report, please
 % feel free to contact me.
 % --------------------------------------------------------------------------
-\newcommand*\@trnslt at date{2017/05/16}
-\newcommand*\@trnslt at version{v1.6}
+\newcommand*\@trnslt at date{2017/08/31}
+\newcommand*\@trnslt at version{v1.7a}
 \newcommand*\@trnslt at packageinfo{internationalization of LaTeX2e packages}
 
 \ProvidesPackage{translations}[%
@@ -33,7 +33,7 @@
   \@trnslt at date\space
   \@trnslt at version\space
   \@trnslt at packageinfo\space (CN)]
-\RequirePackage{scrlfile,etoolbox}
+\RequirePackage{scrlfile,etoolbox,pdftexcmds}
 
 % --------------------------------------------------------------------------
 % message handling
@@ -462,11 +462,11 @@
 \newcommand*\@trnslt at get@translation at for[2]{%
   \@trnslt at if@dialect{#2}
     {%
-      \ifcsdef{@trnslt at word@\detokenize{#1}@\@trnslt at dialect{#2}}
-        {\csuse{@trnslt at word@\detokenize{#1}@\@trnslt at dialect{#2}}}
-        {\csuse{@trnslt at word@\detokenize{#1}@\@trnslt at dialect@of{#2}}}%
+      \@trnslt at if@translation at value{#1}{\@trnslt at dialect{#2}}
+        {\@trnslt at translation@value{#1}{\@trnslt at dialect{#2}}}
+        {\@trnslt at translation@value{#1}{\@trnslt at dialect@of{#2}}}%
     }
-    {\csuse{@trnslt at word@\detokenize{#1}@\@trnslt at language{#2}}}%
+    {\@trnslt at translation@value{#1}{\@trnslt at language{#2}}}%
 }
 
 \newcommand*\@trnslt at checkandget@translation at for[2]{%
@@ -474,11 +474,21 @@
     {\@trnslt at get@translation at for{#1}{#2}}
     {%
       \@trnslt at if@translation{#1}{fallback}
-        {\csuse{@trnslt at word@\detokenize{#1}@fallback}}
-        {\csuse{@trnslt at word@\detokenize{#1}@literal}}%
+        {\@trnslt at translation@value{#1}{fallback}}
+        {\@trnslt at translation@value{#1}{literal}}%
     }%
 }
 
+\newcommand*\@trnslt at if@translation at value[2]{%
+  \ifcsdef{@trnslt at word@\detokenize{#1}@#2}%
+}
+
+\newcommand*\@trnslt at translation@value[2]{%
+  \unexpanded\expandafter\expandafter\expandafter{%
+    \csname @trnslt at word@\detokenize{#1}@#2\endcsname
+  }%
+}
+
 % this is not expandable!
 \newrobustcmd*\@trnslt at getandwarn@translation at for[2]{%
   \@trnslt at if@translation{#1}{#2}
@@ -524,14 +534,7 @@
 }
 
 \newrobustcmd*\@trnslt at save@translation at for[3]{%
-  \edef#1{%
-    \@trnslt at if@translation{#2}{#3}
-      {%
-        \unexpanded\expandafter\expandafter\expandafter
-        {\csname @trnslt at word@\detokenize{#2}@\@trnslt at language{#3}\endcsname}%
-      }
-      {}%
-  }%
+  \edef#1{\@trnslt at checkandget@translation at for{#2}{#3}}%
 }
 
 % --------------------------------------------------------------------------
@@ -1152,3 +1155,6 @@
 2017/05/06 v1.5c    - add Azerbaijani
 2017/05/16 v1.6     - allow translations to contain \par
                     - improve perfomance by replacing list checks
+2017/07/03 v1.6a    - fix issue #6 (bug in \@trnslt at save@translation at for)
+2017/07/06 v1.7     - return translation values in \unexpanded
+2017/08/31 v1.7a    - add missing dependency on pdftexcmds



More information about the tex-live-commits mailing list