New translations:
fr/gallery/gallery-entry.xsl: MFen 1.2 fr/gallery/gallery.xsl: 1.1 Plain copy from the english version: fr/gallery/Makefile: MFen 1.16 fr/gallery/fixurls.pl: MFen 1.1 fr/gallery/gallery.xml: MFen 1.35 (not translated) fr/gallery/merge-mbox.sh: MFen 1.1
This commit is contained in:
parent
e6f6c66e31
commit
fa5fdb8bca
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=17894
6 changed files with 27176 additions and 0 deletions
50
fr/gallery/Makefile
Normal file
50
fr/gallery/Makefile
Normal file
|
@ -0,0 +1,50 @@
|
|||
# $FreeBSD$
|
||||
|
||||
# The FreeBSD French Documentation Project
|
||||
# Original revision: 1.16
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
.endif
|
||||
.if exists(../Makefile.inc)
|
||||
.include "../Makefile.inc"
|
||||
.endif
|
||||
|
||||
XSLTPROCFLAGS= --catalogs
|
||||
XSLT= ${SETENV} SGML_CATALOG_FILES=${PREFIX}/share/xml/dtd/xhtml/xhtml.soc \
|
||||
${XSLTPROC} ${XSLTPROCOPTS}
|
||||
|
||||
INDEXLINK= gallery.html
|
||||
|
||||
DATA+= gallery.html cgallery.html npgallery.html pgallery.html
|
||||
|
||||
CLEANFILES+= ${DATA}
|
||||
|
||||
gallery.html: gallery.xml gallery.xsl ../includes.xsl
|
||||
${XSLT} ${.CURDIR}/gallery.xsl ${.CURDIR}/gallery.xml > ${.TARGET}
|
||||
.if !defined(NO_TIDY)
|
||||
-${TIDY} ${TIDYOPTS} ${.TARGET}
|
||||
.endif
|
||||
|
||||
cgallery.html: gallery.xml gallery-entry.xsl
|
||||
${XSLT} --param type \'commercial\' \
|
||||
${.CURDIR}/gallery-entry.xsl ${.CURDIR}/gallery.xml > ${.TARGET}
|
||||
.if !defined(NO_TIDY)
|
||||
-${TIDY} ${TIDYOPTS} ${.TARGET}
|
||||
.endif
|
||||
|
||||
npgallery.html: gallery.xml gallery-entry.xsl
|
||||
${XSLT} --param type \'nonprofit\' \
|
||||
${.CURDIR}/gallery-entry.xsl ${.CURDIR}/gallery.xml > ${.TARGET}
|
||||
.if !defined(NO_TIDY)
|
||||
-${TIDY} ${TIDYOPTS} ${.TARGET}
|
||||
.endif
|
||||
|
||||
pgallery.html: gallery.xml gallery-entry.xsl
|
||||
${XSLT} --param type \'personal\' \
|
||||
${.CURDIR}/gallery-entry.xsl ${.CURDIR}/gallery.xml > ${.TARGET}
|
||||
.if !defined(NO_TIDY)
|
||||
-${TIDY} ${TIDYOPTS} ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|
57
fr/gallery/fixurls.pl
Executable file
57
fr/gallery/fixurls.pl
Executable file
|
@ -0,0 +1,57 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# This script is dedicated to check existing gallery XML file.
|
||||
# Check its URLs for duplicates and fixup incorrectly submitted ones.
|
||||
#
|
||||
# History:
|
||||
# 31082001 Alexey Zelkin Initial version
|
||||
#
|
||||
# Usage:
|
||||
# fixurls.pl gallery.xml output.xml
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
# The FreeBSD French Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
if (-f $ARGV[0]) {
|
||||
$src = $ARGV[0];
|
||||
} else {
|
||||
die "Could not open source file!"
|
||||
}
|
||||
|
||||
if ($ARGV[1] eq "") {
|
||||
die "Could not open output file!"
|
||||
} else {
|
||||
$dst = $ARGV[1];
|
||||
}
|
||||
|
||||
open (SRC, $src);
|
||||
open (DST, ">$dst");
|
||||
|
||||
while (<SRC>) {
|
||||
if ($_ =~ /\<url\>.*\<\/url\>/) {
|
||||
chomp;
|
||||
s/.*url\>(.*)\<\/url.*/$1/;
|
||||
next if ($_ eq "");
|
||||
# add "http://" at the begining of the url unless it (or any
|
||||
# other (like "ftp://") protocol is already specified
|
||||
$_ = "http://" . $_ unless (m/^[a-z]*:\/\/.*$/);
|
||||
if (defined $hhash{$_}) {
|
||||
$hhash{$_}++;
|
||||
} else {
|
||||
$hhash{$_} = 1;
|
||||
}
|
||||
print DST " <url>$_</url>\n";
|
||||
} else {
|
||||
print DST $_;
|
||||
}
|
||||
}
|
||||
|
||||
close (SRC);
|
||||
close (DST);
|
||||
|
||||
print "Duplicated URLs:\n";
|
||||
foreach $key (sort keys %hhash) {
|
||||
print "$hhash{$key}: $key\n" if ($hhash{$key} > 1);
|
||||
}
|
99
fr/gallery/gallery-entry.xsl
Normal file
99
fr/gallery/gallery-entry.xsl
Normal file
|
@ -0,0 +1,99 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!--
|
||||
The FreeBSD French Documentation Project
|
||||
Original revision: 1.2
|
||||
|
||||
Version francaise : Stephane Legrand <stephane@freebsd-fr.org>
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:import href="../includes.xsl"/>
|
||||
|
||||
<!-- Should be set on the command line, specifies the type of entries to
|
||||
include in the output. One of "commercial", "nonprofit", or
|
||||
"personal" -->
|
||||
<xsl:param name="type"/>
|
||||
|
||||
<xsl:variable name="base" select="'..'"/>
|
||||
|
||||
<xsl:variable name="date" select="'$FreeBSD$'"/>
|
||||
|
||||
<xsl:output type="html" encoding="iso-8859-1"/>
|
||||
|
||||
<xsl:variable name="title">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$type = 'commercial'">Galerie - Commercial</xsl:when>
|
||||
<xsl:when test="$type = 'nonprofit'">Galerie - Organisations à but non-lucratif</xsl:when>
|
||||
<xsl:when test="$type = 'personal'">Galerie - Pages personnelles</xsl:when>
|
||||
<xsl:otherwise>
|
||||
Unknown value for $type: <xsl:value-of select="$type"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="commercial-intro">
|
||||
<p>A travers le monde entier, FreeBSD fait fonctionner des applications et
|
||||
des services Internet innovants. Cette galerie expose les organisations
|
||||
commerciales qui ont utilisé FreeBSD pour réaliser leurs travaux. Regardez
|
||||
et découvrez tout ce que FreeBSD peut faire pour <b>vous</b>.</p>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="nonprofit-intro">
|
||||
<p>A travers le monde entier, FreeBSD fait fonctionner des applications et
|
||||
des services Internet innovants. Cette galerie expose les organisations
|
||||
à but non-lucratif qui ont utilisé FreeBSD pour réaliser leurs travaux. Regardez
|
||||
et découvrez tout ce que FreeBSD peut faire pour <b>vous</b>.</p>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="personal-intro">
|
||||
<p>A travers le monde entier, FreeBSD fait fonctionner des applications et
|
||||
des services Internet innovants. Cette galerie expose les sites
|
||||
personnels qui ont utilisé FreeBSD pour réaliser leurs travaux. Regardez
|
||||
et découvrez tout ce que FreeBSD peut faire pour <b>vous</b>.</p>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:template match="gallery">
|
||||
<html>
|
||||
<xsl:copy-of select="$header1"/>
|
||||
<body xsl:use-attribute-sets="att.body">
|
||||
<xsl:copy-of select="$header2"/>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="$type = 'commercial'">
|
||||
<xsl:copy-of select="$commercial-intro"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$type = 'nonprofit'">
|
||||
<xsl:copy-of select="$nonprofit-intro"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$type = 'personal'">
|
||||
<xsl:copy-of select="$personal-intro"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<p>No clue what to put here for $type =
|
||||
<xsl:value-of select="$type">.</xsl:value-of></p>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
<ul>
|
||||
<!-- Select all entries of the correct type, doing a case
|
||||
insensitive sort -->
|
||||
<xsl:apply-templates select="entry[@type = $type]">
|
||||
<xsl:sort select="translate(string(./name),
|
||||
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
|
||||
'abcdefghijklmnopqrstuvwxyz')"/>
|
||||
</xsl:apply-templates>
|
||||
</ul>
|
||||
|
||||
<xsl:copy-of select="$footer"/>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="entry">
|
||||
<xsl:variable name="url"><xsl:value-of select="url"/></xsl:variable>
|
||||
<li><a href="{$url}"><b><xsl:value-of select="name"/></b></a> --
|
||||
<xsl:value-of select="descr"/></li>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
26819
fr/gallery/gallery.xml
Normal file
26819
fr/gallery/gallery.xml
Normal file
File diff suppressed because it is too large
Load diff
94
fr/gallery/gallery.xsl
Normal file
94
fr/gallery/gallery.xsl
Normal file
|
@ -0,0 +1,94 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!--
|
||||
The FreeBSD French Documentation Project
|
||||
Original revision: 1.1
|
||||
|
||||
Version francaise : Stephane Legrand <stephane@freebsd-fr.org>
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:import href="../includes.xsl"/>
|
||||
|
||||
<xsl:variable name="base" select="'..'"/>
|
||||
<xsl:variable name="title" select="'La Galerie FreeBSD'"/>
|
||||
<xsl:variable name="date" select="'$FreeBSD$'"/>
|
||||
|
||||
<xsl:output type="html" encoding="iso-8859-1"/>
|
||||
|
||||
<xsl:template match="gallery">
|
||||
<html>
|
||||
<xsl:copy-of select="$header1"/>
|
||||
<body xsl:use-attribute-sets="att.body">
|
||||
<xsl:copy-of select="$header2"/>
|
||||
|
||||
<p>A travers le monde entier, FreeBSD fait fonctionner des applications
|
||||
et des services Internet innovants. Cette galerie expose <xsl:value-of
|
||||
select="count(//entry)"/> organisations et particuliers qui ont utilisé
|
||||
FreeBSD pour réaliser leurs travaux. Regardez et découvrez tout ce que
|
||||
FreeBSD peut faire pour <b>vous</b>.</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="cgallery.html"><xsl:value-of
|
||||
select="count(//entry[@type='commercial'])"/> organisations
|
||||
commerciales</a></li>
|
||||
<li><a href="npgallery.html"><xsl:value-of
|
||||
select="count(//entry[@type='nonprofit'])"/> organisations
|
||||
à but non-lucratif</a></li>
|
||||
<li><a href="pgallery.html"><xsl:value-of
|
||||
select="count(//entry[@type='personal'])"/> sites
|
||||
personnels</a></li>
|
||||
</ul>
|
||||
|
||||
<p>Pour voir votre site ajouté à ces listes, remplissez simplement
|
||||
<a href="http://www.FreeBSD.org/cgi/gallery.cgi">ce formulaire</a>.</p>
|
||||
|
||||
<table width="100%" border="0">
|
||||
<tr>
|
||||
<td align="left"><img src="../gifs/powerlogo.gif" alt=""
|
||||
align="left" border="0"/></td>
|
||||
|
||||
<td align="left"><img src="../gifs/power-button.gif" alt=""
|
||||
align="left" border="0"/></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right"><img src="../gifs/pbfbsd2.gif" width="171"
|
||||
height="64" border="0"/></td>
|
||||
|
||||
<td align="right"><img src="../gifs/powerani.gif" width="171"
|
||||
height="64"/></td>
|
||||
|
||||
<td align="right"><img src="../gifs/fhp_mini.jpg" width="171"
|
||||
height="64"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p align="center"><img src="../gifs/banner1.gif" alt=""
|
||||
width="446" height="63" border="0"/></p>
|
||||
|
||||
<p align="center"><img src="../gifs/banner2.gif" alt="" width="310"
|
||||
height="63" border="0"/></p>
|
||||
|
||||
<p align="center"><img src="../gifs/banner3.gif" alt="" width="250"
|
||||
height="35" border="0"/></p>
|
||||
|
||||
<p align="center"><img src="../gifs/banner4.gif" alt="" width="225"
|
||||
height="46" border="0"/></p>
|
||||
|
||||
<p>Les logos "Fonctionne grâce à FreeBSD" ("Powered by FreeBSD") visibles ci-dessus peuvent être
|
||||
<a href="../gifs/powerlogo.gif">téléchargés</a> et affichés sur les pages
|
||||
d'accueils de sites personnels ou commerciaux fonctionnant sous FreeBSD. L'utilisation de
|
||||
ce logo ou des <a
|
||||
href="../copyright/daemon.html">Démons BSD</a> dans un but lucratif
|
||||
nécessite l'accord de <a href="mailto:taob@risc.org">Brian Tao</a>
|
||||
(créateur du logo "Fonctionne grâce à FreeBSD") et de <a
|
||||
href="mailto:mckusick@mckusick.com">Marshall Kirk McKusick</a>
|
||||
(détenteur de la marque relative à l'image du Démon BSD).</p>
|
||||
|
||||
<xsl:copy-of select="$footer"/>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
57
fr/gallery/merge-mbox.sh
Executable file
57
fr/gallery/merge-mbox.sh
Executable file
|
@ -0,0 +1,57 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This script is dedicated to help gallery maintainer to parse source
|
||||
# mailbox which contains letters submitted by
|
||||
# http://www.FreeBSD.org/cgi/gallery.cgi and merge parsed information into
|
||||
# existing gallery.xml file.
|
||||
#
|
||||
# History:
|
||||
# 31082001 Alexey Zelkin Initial version
|
||||
#
|
||||
# Usage:
|
||||
# merge-mbox.sh src.mbox output.xml
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
# The FreeBSD French Documentation Project
|
||||
# Original revision: 1.1
|
||||
|
||||
# source file
|
||||
if ! [ -f "$1" ]; then
|
||||
echo "Could not open source mbox!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# destination file (copy of gallery.xml plus new items)
|
||||
if [ "$2" = "" ]; then
|
||||
echo "You must specify output file name!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# cleanup mailbox
|
||||
/usr/bin/egrep "^[commercial,nonprofit,personal]" $1 | /usr/bin/uniq | /usr/bin/sort > TMP.mbox
|
||||
|
||||
# make a copy of gallery.xml except closing </gallery> tag
|
||||
/usr/bin/grep -v "^<\/gallery>$" gallery.xml > $2
|
||||
|
||||
# add XMLized new items
|
||||
awk -F'\t' '{ \
|
||||
print " <entry type=\""$1"\">"; \
|
||||
print " <name>"$2"</name>"; \
|
||||
print " <url>"$3"</url>"; \
|
||||
print " <descr>"$4"</descr>"; \
|
||||
print " <email>"$5"</email>"; \
|
||||
print " </entry>"; \
|
||||
print ""; \
|
||||
}' TMP.mbox >> $2
|
||||
|
||||
# add closing XML tag
|
||||
echo "</gallery>" >> $2
|
||||
|
||||
# fixup URLs
|
||||
mv $2 $2.tmp
|
||||
/usr/bin/perl fixurls.pl $2.tmp $2
|
||||
|
||||
# cleanup
|
||||
rm $2.tmp
|
||||
rm TMP.mbox
|
Loading…
Reference in a new issue