website rev 872

lib/archives.php: update from tuxfamily
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 11 19:43:24 2011 +0200 (2011-08-11)
parents 7b307fc266c4
children 8d4f1608607c
files libs/archives.php
line diff
     1.1 --- a/libs/archives.php	Tue Jun 14 23:47:14 2011 +0200
     1.2 +++ b/libs/archives.php	Thu Aug 11 19:43:24 2011 +0200
     1.3 @@ -29,6 +29,12 @@
     1.4  	.roweven {
     1.5  		background-color: #e1ffe1; /* the tower */
     1.6  	}
     1.7 +	.odd {
     1.8 +		background-color: #ffffff;
     1.9 +	}
    1.10 +	.even {
    1.11 +		background-color: #e1ffe1; /* the tower */
    1.12 +	}
    1.13  	th {
    1.14  		border: 1px solid #000000;
    1.15  		width: variable;
    1.16 @@ -50,9 +56,11 @@
    1.17  		case "Archives"  : return "Archiv";
    1.18  		case "Archive"   : return "Archiv";
    1.19  		case "View by"   : return "Ansicht von";
    1.20 +		case "Messages count":
    1.21  		case "Number"    : return "Zahl";
    1.22  		case "Total size": return "Gesamtgr\&ouml;\&szlig;e";
    1.23  		case " or "      : return " oder ";
    1.24 +		case "Month/Year":
    1.25  		case "Date"      : return "datum";
    1.26  		}
    1.27  		break;
    1.28 @@ -61,20 +69,24 @@
    1.29  		case "Archives"  : return "Archivos";
    1.30  		case "Archive"   : return "Archivo";
    1.31  		case "View by"   : return "Vista";
    1.32 +		case "Messages count":
    1.33  		case "Number"    : return "n\&uacute;mero";
    1.34  		case "Total size": return "Tama\&ntilde;o total";
    1.35  		case "Thread"    : return "hilo";
    1.36  		case " or "      : return " o ";
    1.37 +		case "Month/Year":
    1.38  		case "Date"      : return "Fecha";
    1.39  		}
    1.40  		break;
    1.41  	case "fr" :
    1.42  		switch ($word) {
    1.43  		case "View by"   : return "Tri\&eacute; par";
    1.44 +		case "Messages count":
    1.45  		case "Number"    : return "Nombre";
    1.46  		case "Total size": return "Volume";
    1.47  		case "Thread"    : return "Sujet";
    1.48  		case " or "      : return " ou ";
    1.49 +		case "Month/Year": return "Date";
    1.50  		}
    1.51  		break;
    1.52  	case "pt" :
    1.53 @@ -82,13 +94,21 @@
    1.54  		case "Archives"  : return "Arquivos";
    1.55  		case "Archive"   : return "Arquivo";
    1.56  		case "View by"   : return "Exibir por";
    1.57 +		case "Messages count":
    1.58  		case "Number"    : return "n\&uacute;mero";
    1.59  		case "Total size": return "O tamanho total";
    1.60  		case "Thread"    : return "T\&oacute;pico";
    1.61  		case " or "      : return " ou ";
    1.62 +		case "Month/Year":
    1.63  		case "Date"      : return "Data";
    1.64  		}
    1.65  		break;
    1.66 +	default:
    1.67 +		switch ($word) {
    1.68 +		case "Messages count": return "Number";
    1.69 +		case "Month/Year": return "Date";
    1.70 +		}
    1.71 +		break;
    1.72  	}
    1.73  	return $word;
    1.74  }
    1.75 @@ -97,10 +117,11 @@
    1.76  
    1.77  $url = "http://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/";
    1.78  
    1.79 -$script  = "-e '/<table>/,/<\/table>/!d' ";
    1.80 +$script  = "-e '/<table/,/<\/table>/!d' ";
    1.81  $script .= "-e 's|html\"|html\" target=\"_blank\"|g' ";
    1.82  $script .= "-e 's|href=\"|href=\"$url|g' ";
    1.83  foreach (array("Archive","View by","Number","Total size",
    1.84 +	       "Messages count", "Month/Year",
    1.85  	       "Thread"," or ","Date") as $word) {
    1.86  	$script .= "-e 's|".$word."|".translate($word)."|' ";
    1.87  }