website rev 1084

Update relnotes links (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 27 09:56:28 2012 +0200 (2012-07-27)
parents 2624878c24e8
children ebdc0d09be5b
files cn/doc/index.php en/doc/index.php es/doc/index.php fr/doc/index.php it/doc/index.php pt/doc/index.php ru/doc/index.php
line diff
     1.1 --- a/cn/doc/index.php	Fri Jul 27 09:10:17 2012 +0200
     1.2 +++ b/cn/doc/index.php	Fri Jul 27 09:56:28 2012 +0200
     1.3 @@ -65,10 +65,22 @@
     1.4  </p>
     1.5  
     1.6  <ul>
     1.7 -	<li><a href="/en/doc/releases/4.0/relnotes.en.html">SliTaz GNU/Linux 4.0 - 发行笔记</a></li>
     1.8 -	<li><a href="releases/3.0/relnotes.cn.html">SliTaz GNU/Linux 3.0 - 发行笔记</a></li>
     1.9 -	<li><a href="/en/doc/releases/2.0/relnotes.en.html">SliTaz GNU/Linux 2.0 - 发行笔记</a></li>
    1.10 -	<li><a href="/en/doc/releases/1.0/relnotes.en.html">SliTaz GNU/Linux 1.0 - 发行笔记</a></li>
    1.11 +<?php
    1.12 +	$relnotes = array();
    1.13 +	for ($release = 1;; $release++) {
    1.14 +		$file = "releases/".$release.".0/relnotes.cn.html";
    1.15 +		if (!file_exists($file)) {
    1.16 +			$file = "../../en/doc/releases/".$release.".0/relnotes.en.html";
    1.17 +			if (!file_exists($file))
    1.18 +				break;
    1.19 +		}
    1.20 +		array_unshift($relnotes, array("release" => $release.".0", "file" => $file));
    1.21 +	}
    1.22 +	foreach ($relnotes as $release) {
    1.23 +		print "	<li><a href=\"".$release["file"]."\">SliTaz GNU/Linux ".$release["release"]." -\n";
    1.24 +		print "         发行笔记</a></li>\n";
    1.25 +	}
    1.26 +?>
    1.27  </ul>
    1.28  
    1.29  <!-- End of content -->
     2.1 --- a/en/doc/index.php	Fri Jul 27 09:10:17 2012 +0200
     2.2 +++ b/en/doc/index.php	Fri Jul 27 09:56:28 2012 +0200
     2.3 @@ -96,14 +96,19 @@
     2.4  </p>
     2.5  
     2.6  <ul>
     2.7 -	<li><a href="releases/4.0/relnotes.en.html">SliTaz GNU/Linux 4.0 - 
     2.8 -		Release Notes</a></li>
     2.9 -	<li><a href="releases/3.0/relnotes.en.html">SliTaz GNU/Linux 3.0 - 
    2.10 -		Release Notes</a></li>
    2.11 -	<li><a href="releases/2.0/relnotes.en.html">SliTaz GNU/Linux 2.0 - 
    2.12 -		Release Notes</a></li>
    2.13 -	<li><a href="releases/1.0/relnotes.en.html">SliTaz GNU/Linux 1.0 - 
    2.14 -		Release Notes</a></li>
    2.15 +<?php
    2.16 +	$relnotes = array();
    2.17 +	for ($release = 1;; $release++) {
    2.18 +		$file = "releases/".$release.".0/relnotes.en.html";
    2.19 +		if (!file_exists($file))
    2.20 +			break;
    2.21 +		array_unshift($relnotes, array("release" => $release.".0", "file" => $file));
    2.22 +	}
    2.23 +	foreach ($relnotes as $release) {
    2.24 +		print "	<li><a href=\"".$release["file"]."\">SliTaz GNU/Linux ".$release["release"]." -\n";
    2.25 +		print " 	Release Notes</a></li>\n";
    2.26 +	}
    2.27 +?>
    2.28  </ul>
    2.29  
    2.30  <!-- End of content -->
     3.1 --- a/es/doc/index.php	Fri Jul 27 09:10:17 2012 +0200
     3.2 +++ b/es/doc/index.php	Fri Jul 27 09:56:28 2012 +0200
     3.3 @@ -92,14 +92,22 @@
     3.4  </p>
     3.5  
     3.6  <ul>
     3.7 -	<li><a href="/en/doc/releases/4.0/relnotes.en.html">SliTaz GNU/Linux 4.0 -
     3.8 -		Notas de la Versión</a></li>
     3.9 -	<li><a href="releases/3.0/relnotes.es.html">SliTaz GNU/Linux 3.0 -
    3.10 -		Notas de la Versión</a></li>
    3.11 -	<li><a href="/en/doc/releases/2.0/relnotes.en.html">SliTaz GNU/Linux 2.0 -
    3.12 -		Notas de la Versión</a></li>
    3.13 -	<li><a href="/en/doc/releases/1.0/relnotes.en.html">SliTaz GNU/Linux 1.0 -
    3.14 -		Notas de la Versión</a></li>
    3.15 +<?php
    3.16 +	$relnotes = array();
    3.17 +	for ($release = 1;; $release++) {
    3.18 +		$file = "releases/".$release.".0/relnotes.es.html";
    3.19 +		if (!file_exists($file)) {
    3.20 +			$file = "../../en/doc/releases/".$release.".0/relnotes.en.html";
    3.21 +			if (!file_exists($file))
    3.22 +				break;
    3.23 +		}
    3.24 +		array_unshift($relnotes, array("release" => $release.".0", "file" => $file));
    3.25 +	}
    3.26 +	foreach ($relnotes as $release) {
    3.27 +		print "	<li><a href=\"".$release["file"]."\">SliTaz GNU/Linux ".$release["release"]." -\n";
    3.28 +		print "		Notas de la Versión</a></li>\n";
    3.29 +	}
    3.30 +?>
    3.31  </ul>
    3.32  
    3.33  <!-- End of content  -->
     4.1 --- a/fr/doc/index.php	Fri Jul 27 09:10:17 2012 +0200
     4.2 +++ b/fr/doc/index.php	Fri Jul 27 09:56:28 2012 +0200
     4.3 @@ -105,14 +105,22 @@
     4.4  </p>
     4.5  
     4.6  <ul>
     4.7 -	<li><a href="releases/4.0/relnotes.fr.html">SliTaz GNU/Linux 4.0 - 
     4.8 -		Notes de publication</a></li>
     4.9 -	<li><a href="releases/3.0/relnotes.fr.html">SliTaz GNU/Linux 3.0 - 
    4.10 -		Notes de publication</a></li>
    4.11 -	<li><a href="releases/2.0/relnotes.fr.html">SliTaz GNU/Linux 2.0 - 
    4.12 -		Notes de publication</a></li>
    4.13 -	<li><a href="releases/1.0/relnotes.fr.html">SliTaz GNU/Linux 1.0 -
    4.14 -		Notes de publication</a></li>
    4.15 +<?php
    4.16 +	$relnotes = array();
    4.17 +	for ($release = 1;; $release++) {
    4.18 +		$file = "releases/".$release.".0/relnotes.fr.html";
    4.19 +		if (!file_exists($file)) {
    4.20 +			$file = "../../en/doc/releases/".$release.".0/relnotes.en.html";
    4.21 +			if (!file_exists($file))
    4.22 +				break;
    4.23 +		}
    4.24 +		array_unshift($relnotes, array("release" => $release.".0", "file" => $file));
    4.25 +	}
    4.26 +	foreach ($relnotes as $release) {
    4.27 +		print "	<li><a href=\"".$release["file"]."\">SliTaz GNU/Linux ".$release["release"]." -\n";
    4.28 +		print "		Notes de publication</a></li>\n";
    4.29 +	}
    4.30 +?>
    4.31  </ul>
    4.32  
    4.33  <!-- End of content -->
     5.1 --- a/it/doc/index.php	Fri Jul 27 09:10:17 2012 +0200
     5.2 +++ b/it/doc/index.php	Fri Jul 27 09:56:28 2012 +0200
     5.3 @@ -98,14 +98,22 @@
     5.4  </p>
     5.5  
     5.6  <ul>
     5.7 -	<li><a href="/en/doc/releases/4.0/relnotes.en.html">SliTaz GNU/Linux 4.0 - 
     5.8 -	Note di Rilascio</a></li>
     5.9 -	<li><a href="/en/doc/releases/3.0/relnotes.en.html">SliTaz GNU/Linux 3.0 - 
    5.10 -	Note di Rilascio</a></li>
    5.11 -	<li><a href="/en/doc/releases/2.0/relnotes.en.html">SliTaz GNU/Linux 2.0 - 
    5.12 -	Note di Rilascio</a></li>
    5.13 -	<li><a href="/en/doc/releases/1.0/relnotes.en.html">SliTaz GNU/Linux 1.0 - 
    5.14 -	Note di Rilascio</a></li>
    5.15 +<?php
    5.16 +	$relnotes = array();
    5.17 +	for ($release = 1;; $release++) {
    5.18 +		$file = "releases/".$release.".0/relnotes.it.html";
    5.19 +		if (!file_exists($file)) {
    5.20 +			$file = "../../en/doc/releases/".$release.".0/relnotes.en.html";
    5.21 +			if (!file_exists($file))
    5.22 +				break;
    5.23 +		}
    5.24 +		array_unshift($relnotes, array("release" => $release.".0", "file" => $file));
    5.25 +	}
    5.26 +	foreach ($relnotes as $release) {
    5.27 +		print "	<li><a href=\"".$release["file"]."\">SliTaz GNU/Linux ".$release["release"]." -\n";
    5.28 +		print "		Note di Rilascio</a></li>\n";
    5.29 +	}
    5.30 +?>
    5.31  </ul>
    5.32  
    5.33  <!-- End of content -->
     6.1 --- a/pt/doc/index.php	Fri Jul 27 09:10:17 2012 +0200
     6.2 +++ b/pt/doc/index.php	Fri Jul 27 09:56:28 2012 +0200
     6.3 @@ -86,14 +86,25 @@
     6.4  </p>
     6.5  
     6.6  <ul>
     6.7 -	<li><a href="releases/4.0/relnotes.pt_BR.html">SliTaz GNU/Linux 4.0 - 
     6.8 -		Notas de Lançamento</a></li>
     6.9 -	<li><a href="releases/3.0/relnotes.pt.html">SliTaz GNU/Linux 3.0 - 
    6.10 -		Notas de Lançamento</a></li>
    6.11 -	<li><a href="releases/2.0/relnotes.pt.html">SliTaz GNU/Linux 2.0 - 
    6.12 -		Notas de Lançamento</a></li>
    6.13 -	<li><a href="releases/1.0/relnotes.pt.html">SliTaz GNU/Linux 1.0 - 
    6.14 -		Notas de Lançamento</a></li>
    6.15 +<?php
    6.16 +	$relnotes = array();
    6.17 +	for ($release = 1;; $release++) {
    6.18 +		$file = "releases/".$release.".0/relnotes.pt.html";
    6.19 +		if (!file_exists($file)) {
    6.20 +			$file = "releases/".$release.".0/relnotes.pt_BR.html";
    6.21 +			if (!file_exists($file)) {
    6.22 +				$file = "../../en/doc/releases/".$release.".0/relnotes.en.html";
    6.23 +				if (!file_exists($file))
    6.24 +					break;
    6.25 +			}
    6.26 +		}
    6.27 +		array_unshift($relnotes, array("release" => $release.".0", "file" => $file));
    6.28 +	}
    6.29 +	foreach ($relnotes as $release) {
    6.30 +		print "	<li><a href=\"".$release["file"]."\">SliTaz GNU/Linux ".$release["release"]." -\n";
    6.31 +		print "		Notas de Lançamento</a></li>\n";
    6.32 +	}
    6.33 +?>
    6.34  </ul>
    6.35  
    6.36  <!-- End of content -->
     7.1 --- a/ru/doc/index.php	Fri Jul 27 09:10:17 2012 +0200
     7.2 +++ b/ru/doc/index.php	Fri Jul 27 09:56:28 2012 +0200
     7.3 @@ -92,14 +92,22 @@
     7.4  	и доступны через меню «Документация».</p>
     7.5  
     7.6  <ul>
     7.7 -	<li><a href="/en/doc/releases/4.0/relnotes.en.html">SliTaz GNU/Linux 4.0 —
     7.8 -		Release Notes</a></li>
     7.9 -	<li><a href="/en/doc/releases/3.0/relnotes.en.html">SliTaz GNU/Linux 3.0 —
    7.10 -		Release Notes</a></li>
    7.11 -	<li><a href="/en/doc/releases/2.0/relnotes.en.html">SliTaz GNU/Linux 2.0 —
    7.12 -		Release Notes</a></li>
    7.13 -	<li><a href="/en/doc/releases/1.0/relnotes.en.html">SliTaz GNU/Linux 1.0 —
    7.14 -		Release Notes</a></li>
    7.15 +<?php
    7.16 +	$relnotes = array();
    7.17 +	for ($release = 1;; $release++) {
    7.18 +		$file = "releases/".$release.".0/relnotes.ru.html";
    7.19 +		if (!file_exists($file)) {
    7.20 +			$file = "../../en/doc/releases/".$release.".0/relnotes.en.html";
    7.21 +			if (!file_exists($file))
    7.22 +				break;
    7.23 +		}
    7.24 +		array_unshift($relnotes, array("release" => $release.".0", "file" => $file));
    7.25 +	}
    7.26 +	foreach ($relnotes as $release) {
    7.27 +		print "	<li><a href=\"".$release["file"]."\">SliTaz GNU/Linux ".$release["release"]." -\n";
    7.28 +		print "		Release Notes</a></li>\n";
    7.29 +	}
    7.30 +?>
    7.31  </ul>
    7.32  
    7.33  <!-- End of content -->