commit: 9c894bcb475e4cbf87fa320943a16ddb67ece7e1
parent 0124c613899239ec662eadd083ea4633442ed264
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 19 Nov 2024 10:11:40 +0100
atom.fr.xsl.in: translate atom.xsl.in to french
Diffstat:
2 files changed, 42 insertions(+), 1 deletion(-)
diff --git a/atom.fr.xsl.in b/atom.fr.xsl.in
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:atom="http://www.w3.org/2005/Atom"
+ xml:space="preserve"
+>
+ <xsl:import href="templates/fr/nav.xsl" />
+ <xsl:output method="xml" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
+ <xsl:template match="/"><xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text>
+<html xml:lang="fr" lang="fr">
+ <head>
+ <xi:include href="templates/head.xml" parse="xml" xpointer="xpointer(/xml/*)"/>
+ <title><xsl:value-of select="/atom:feed/atom:title" /></title>
+ </head>
+ <body>
+ <xsl:call-template name="nav">
+ <xsl:with-param name="feedURL" select="/atom:feed/atom:link[@rel='self']/@href"/>
+ </xsl:call-template>
+ <main>
+ <h1><xsl:value-of select="/atom:feed/atom:title" /></h1>
+ <p>Ceci est un flux atom, vous pouvez régulièrement tirer des mises à jours avec un <a href="https://fr.wikipedia.org/wiki/Agr%C3%A9gateur">lecteur de flux</a> et <a href="{/atom:feed/atom:link[@rel='self']/@href}">l'URL de ce flux</a>. Inclus ci-dessous les entrées présentes, sans leur contenu par simplification.</p>
+
+ <xsl:apply-templates select="/atom:feed/atom:entry"/>
+ </main>
+ <xi:include href="templates/en/footer.shtml" parse="xml"/>
+ </body>
+</html></xsl:template>
+
+ <xsl:template match="atom:entry">
+ <a href="{atom:id}"><h2><xsl:value-of select="atom:title"/></h2></a>
+ <p class="timestamps"><xsl:apply-templates select="atom:published"/><xsl:apply-templates select="atom:updated"/></p>
+ <xsl:if test="atom:content[@type='text']"><p><xsl:value-of select="atom:content"/></p></xsl:if>
+ </xsl:template>
+
+<xsl:template match="atom:published">publié le <xsl:value-of select="."/></xsl:template>
+<xsl:template match="atom:updated">, dernière mise-à-jour le <xsl:value-of select="."/></xsl:template>
+</xsl:stylesheet>
diff --git a/build.ninja b/build.ninja
@@ -33,8 +33,9 @@ build bookmarks.atom: xslt bookmarks.atom.xsl bookmarks.xbel
build bookmarks.atom.br: brotli bookmarks.atom
build feed.atom: xinclude feed.atom.in
-build flux.atom: xinclude flux.atom.in
build atom.xsl: xinclude atom.xsl.in
+build flux.atom: xinclude flux.atom.in
+build atom.fr.xsl: xinclude atom.fr.xsl.in
build animelist.xhtml: xinclude animelist.xhtml.in