[bootlin/training-materials updates] master: agenda: latest update date in french (840c8a0f)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Fri Oct 22 09:48:41 CEST 2021


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/840c8a0fcd7e0331f95ff3aeb7e064abe6bd4847

>---------------------------------------------------------------

commit 840c8a0fcd7e0331f95ff3aeb7e064abe6bd4847
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Fri Oct 22 09:48:41 2021 +0200

    agenda: latest update date in french
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


>---------------------------------------------------------------

840c8a0fcd7e0331f95ff3aeb7e064abe6bd4847
 Makefile          | 5 +++--
 common/agenda.sty | 6 +++++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 7c6051ce..18c66bb6 100644
--- a/Makefile
+++ b/Makefile
@@ -247,8 +247,9 @@ endif
 #
 # === Last update file generation ===
 #
-$(OUTDIR)/last-update.tex:
-	t=`git log -1 --format=%ct` && printf "\def \lastupdate{%s}\n" "`(LANG=en_EN.UTF-8 date -d @$${t} +'%B %d, %Y')`" > $@
+$(OUTDIR)/last-update.tex: FORCE
+	t=`git log -1 --format=%ct` && printf "\def \lastupdateen{%s}\n" "`(LANG=en_EN.UTF-8 date -d @$${t} +'%B %d, %Y')`" > $@
+	t=`git log -1 --format=%ct` && printf "\def \lastupdatefr{%s}\n" "`(LANG=fr_FR.UTF-8 date -d @$${t} +'%d %B %Y')`" >> $@
 
 
 #
diff --git a/common/agenda.sty b/common/agenda.sty
index 2bc4c823..0c541d23 100644
--- a/common/agenda.sty
+++ b/common/agenda.sty
@@ -128,7 +128,11 @@
     \large
     \trainingduration{}\\
     \small
-    Latest update: \lastupdate{}
+    \ifthenelse{\equal{\agendalanguage}{french}}{
+      Dernière mise à jour: \lastupdatefr{}
+    }{
+      Latest update: \lastupdateen{}
+    }
   \end{center}
   \vspace{1cm}
 }




More information about the training-materials-updates mailing list