move website stuff from branches/resources to website/

[[Split portion of a mixed commit.]]
This commit is contained in:
Nils Kneuper 2009-04-22 09:29:25 +00:00
parent ea01ded9fe
commit ee77e8529b
21 changed files with 0 additions and 2113 deletions

View File

@ -1,25 +0,0 @@
#!/bin/bash
SVNCHECKOUTPATH=/usr/src/svn-checkouts
echo update started at `date` >> $HOME/g.w.o-updates.log
#update the 1.4 checkout
cd $SVNCHECKOUTPATH/1.4/
#svn cleanup
svn up
#update the trunk checkout
cd $SVNCHECKOUTPATH/trunk/
#svn cleanup
svn up
#update the wescamp checkout
cd $SVNCHECKOUTPATH/wescamp-i18n/
#svn cleanup
svn up trunk/ branches/
#update the stats
cd $SVNCHECKOUTPATH/gettext.wesnoth.org
php grab-stats.php
#php grab-stats.php >> $HOME/g.w.o-updates.log
echo update completed at `date` >> $HOME/g.w.o-updates.log

View File

@ -1,60 +0,0 @@
<?php
////////////////////////////////////////////////////////////////////////////
// $Id: grab-config.php,v 1.4 2003/08/12 20:01:30 claudiuc Exp $
//
// Description: Configuration file for GUI statistics grabbing program
//
////////////////////////////////////////////////////////////////////////////
// the msgfmt program path
$msgfmt="/usr/bin/msgfmt";
$branch="1.6"; //version of current stable (folder name of the checkout folder)
$wescampbranchversion="1.6";
$wescamptrunkversion="1.7";
$trunkbasedir="/usr/src/svn-checkouts/trunk/";
$branchbasedir="/usr/src/svn-checkouts/$branch/";
$extratbasedir="/usr/src/svn-checkouts/wescamp-i18n/branches/$wescamptrunkversion/"; //trunk addon server
$extrabbasedir="/usr/src/svn-checkouts/wescamp-i18n/branches/$wescampbranchversion/"; //branch addon server
//$packages = file_get_contents($basedir . "/po/DOMAINS");
//$packages = substr($packages, 0, strlen($packages)-1);
$corepackages = "wesnoth wesnoth-lib wesnoth-editor wesnoth-units wesnoth-multiplayer wesnoth-tutorial";
//$packages = trim(system("grep ^SUBDIRS " . $basedir . "/po/Makefile.am | cut -d= -f2"));
$packages = "wesnoth wesnoth-lib wesnoth-editor wesnoth-units wesnoth-multiplayer wesnoth-test wesnoth-anl wesnoth-tutorial wesnoth-manpages wesnoth-manual wesnoth-aoi wesnoth-did wesnoth-dm wesnoth-ei wesnoth-httt wesnoth-l wesnoth-low wesnoth-nr wesnoth-sof wesnoth-sotbe wesnoth-tb wesnoth-thot wesnoth-trow wesnoth-tsg wesnoth-utbs";
//get unofficial packages
//trunk
$packarray = array();
$dir = opendir($extratbasedir); //trunk
while (false !== ($file = readdir($dir))) {
if($file[0] != '.'){
$packarray[] = $file;
}
}
closedir($dir);
sort($packarray);
$extratpackages = implode(" ", $packarray);
//branch
$packarray = array();
$dir = opendir($extrabbasedir); //branch
while (false !== ($file = readdir($dir))) {
if($file[0] != '.'){
$packarray[] = $file;
}
}
closedir($dir);
sort($packarray);
$extrabpackages = implode(" ", $packarray);
//$languages = file_get_contents($basedir . "/po/LINGUAS");
//$languages = substr($languages, 0, strlen($languages)-1);
$prog="grab-stats";
?>

View File

@ -1,89 +0,0 @@
<?php
////////////////////////////////////////////////////////////////////////////
// $Id: grab-functions.php,v 1.4 2004/02/21 00:45:53 claudiuc Exp $
//
// Description: Common functions for GUI statistics grabbing program
//
////////////////////////////////////////////////////////////////////////////
//
// create a lock file
//
function create_lock() {
global $prog;
@touch("/tmp/$prog.lock");
}
//
// remove the lock file
//
function remove_lock() {
global $prog;
@unlink("/tmp/$prog.lock");
}
//
// check if the lock file exist
//
function is_locked() {
global $prog;
if (@is_file("/tmp/$prog.lock")) {
return 1;
} else {
return 0;
}
}
function update($basedir, $lang, $package){
$pofile=$basedir . "/po/" . $lang . "/" . $package . ".po";
$potfile=$basedir . "/po/" . $package . ".pot";
echo "msgmerge --update " . $pofile . " " . $potfile;
@exec("msgmerge --update " . $pofile . " " . $potfile);
}
//
// get statistics from PO file
//
function getstats($file) {
global $msgfmt;
$translated=0;
$untranslated=0;
$fuzzy=0;
$error=0;
$escfile=escapeshellarg($file);
@exec("$msgfmt -o /dev/null --statistics $escfile 2>&1",$output,$ret);
if ($ret==0) {
// new version of msgfmt make life harder :-/
if (preg_match("/^\s*(\d+)\s*translated[^\d]+(\d+)\s*fuzzy[^\d]+(\d+)\s*untranslated/",$output[0],$m)) {
} else if (preg_match("/^\s*(\d+)\s*translated[^\d]+(\d+)\s*fuzzy[^\d]/",$output[0],$m)) {
} else if (preg_match("/^\s*(\d+)\s*translated[^\d]+(\d+)\s*untranslated[^\d]/",$output[0],$m)) {
$m[3]=$m[2];
$m[2]=0;
} else if (preg_match("/^\s*(\d+)\s*translated[^\d]+/",$output[0],$m)) {
} else {
return array(1,0,0,0);
}
$translated = $m[1]+0;
$fuzzy = $m[2]+0;
$untranslated = $m[3]+0;
} else {
$error=1;
}
return array($error,$translated,$fuzzy,$untranslated);
}
function getdomain($string) {
return "wesnoth-" . str_replace("-po","",$string);
}
function getpackage($string) {
return str_replace("wesnoth-","",$string);
}
?>

View File

@ -1,84 +0,0 @@
<?php
////////////////////////////////////////////////////////////////////////////
// $Id: grab-stats.php,v 1.3 2004/01/29 23:32:37 claudiuc Exp $
//
// Description: Grab GUI messages statistics
//
////////////////////////////////////////////////////////////////////////////
include("functions.php");
include("config.php");
// ************* PRELIMINARY TASKS, DATA INIT *************
set_time_limit(0);
// data initialization
$currdate = date("Y-m-d",mktime());
// ************* DATA PROCESSING *************
// check and then aquire lock to prevent two simultaneous running
if (is_locked()) {
exit();
} else {
register_shutdown_function("remove_lock");
create_lock();
}
$packs = explode(" ", $packages);
$extratpacks = explode(" ", $extratpackages);
$extrabpacks = explode(" ", $extrabpackages);
function grab_stats ($tob, $official, $packs) // trunk or branch, official (1) or extras (0), package array
{
//these are defined in config.php
global $trunkbasedir;
global $branchbasedir;
global $extratbasedir;
global $extrabbasedir;
foreach($packs as $package){
$stats = array();
if ($official)
{
$basedir = ($tob == "trunk") ? $trunkbasedir : $branchbasedir;
$po_dir = $basedir . "/po/" . $package . "/";
$domain = $package;
} else { // wescamp
$basedir = ($tob == "trunk") ? $extratbasedir : $extrabbasedir;
$po_dir = $basedir . "/" . $package . "/po/";
$domain = getdomain($package);
}
$languages = file_get_contents($po_dir . "/LINGUAS");
$languages = substr($languages, 0, strlen($languages)-1);
$langs = explode(" ", $languages);
echo "<h2>Getting stats for package $package</h2>";
$stats["_pot"] = getstats("$po_dir/" . $domain . ".pot");
if (!file_exists("stats/" . $domain))
{
system("mkdir stats/" . $domain);
}
foreach ($langs as $lang)
{
echo "Getting stats for lang $lang<br/>";
$pofile = $po_dir . "/" . $lang . ".po";
$stats[$lang] = getstats($pofile);
}
$serialized = serialize($stats);
$file = fopen("stats/" . $domain . "/" . $tob . "stats", "wb");
fwrite($file, $serialized);
fclose($file);
}
}
echo "<h1>Getting stats for trunk</h1>\n";
grab_stats("trunk", 1, $packs);
grab_stats("trunk", 0, $extratpacks);
echo "<h1>Getting stats for branch ($branch)</h1>\n";
grab_stats("branch", 1, $packs);
grab_stats("branch", 0, $extrabpacks);
?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

View File

@ -1,13 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>300 Multiple Choices</TITLE>
</HEAD><BODY>
<H1>Multiple Choices</H1>
The document name you requested (<code>/images/menu-bg.png</code>) could not be found on this server.
However, we found documents with names similar to the one you requested.<p>Available documents:
<ul>
<li><a href="/images/menu-bg.jpg">/images/menu-bg.jpg</a> (common basename)
</ul>
<HR>
<ADDRESS>Apache/1.3.31 Server at www.wesnoth.org Port 80</ADDRESS>
</BODY></HTML>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 888 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

View File

@ -1,349 +0,0 @@
<?php
include("config.php");
include("functions.php");
include("langs.php");
global $langs;
function cmp_translated($a, $b){
if($a[1]==$b[1]){
if($a[2]==$b[2]){
return 0;
}
return ($a[2] < $b[2]) ? 1 : -1;
}
return ($a[1] < $b[1]) ? 1 : -1;
}
function cmp_alpha($a, $b){
return strcmp($langs[$a],$langs[$b]);
}
$official = true;
$existing_packs = explode(" ", $packages);
$existing_extra_packs = explode(" ", $extrapackages);
$firstpack = $existing_packs[0];
$stats = array();
if(!isset($_GET['package'])){
$package = 'alloff';
}else{
$package = $_GET['package'];
}
if(!isset($_GET['order']) || $_GET['order'] != 'alpha'){
$order='trans';
}else{
$order='alpha';
}
if($package=='alloff'){
$packs = $existing_packs;
foreach($packs as $pack){
if (!file_exists("stats/" . $pack . "/stats")) {
continue;
}
$serialized = file_get_contents("stats/" . $pack . "/stats");
$tmpstats = array();
$tmpstats = unserialize($serialized);
foreach($tmpstats as $lang => $stat){
if(isset($stats[$lang])){
$stats[$lang][0]+=$stat[0];
$stats[$lang][1]+=$stat[1];
$stats[$lang][2]+=$stat[2];
$stats[$lang][3]+=$stat[3];
}else{
$stats[$lang] = array();
$stats[$lang][0]=$stat[0];
$stats[$lang][1]=$stat[1];
$stats[$lang][2]=$stat[2];
$stats[$lang][3]=$stat[3];
}
}
}
}elseif($package=='all'){
for($i = 0; $i < 2; $i++){
if($i==0){
$packs = $existing_packs;
}else{
$packs = $existing_extra_packs;
}
foreach($packs as $pack){
if($i==1){
$pack = getdomain($pack);
}
if (!file_exists("stats/" . $pack . "/stats")) {
continue;
}
$serialized = file_get_contents("stats/" . $pack . "/stats");
$tmpstats = array();
$tmpstats = unserialize($serialized);
foreach($tmpstats as $lang => $stat){
if(isset($stats[$lang])){
$stats[$lang][0]+=$stat[0];
$stats[$lang][1]+=$stat[1];
$stats[$lang][2]+=$stat[2];
$stats[$lang][3]+=$stat[3];
}else{
$stats[$lang] = array();
$stats[$lang][0]=$stat[0];
$stats[$lang][1]=$stat[1];
$stats[$lang][2]=$stat[2];
$stats[$lang][3]=$stat[3];
}
}
}
}
}else{
$package = $_GET['package'];
if (!file_exists("stats/" . $package . "/stats")) {
$nostats=true;
}else{
$serialized = file_get_contents("stats/" . $package . "/stats");
$stats = unserialize($serialized);
}
}
if(!$nostats){
//get total number of strings
$main_total=$stats["_pot"][1]+$stats["_pot"][2]+$stats["_pot"][3];
unset($stats["_pot"]);
$filestat = stat("stats/" . $firstpack ."/stats");
$date = $filestat[9];
if($order=='trans'){
uasort($stats,"cmp_translated");
}else{
uksort($stats,"cmp_alpha");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/xhtml; charset=utf-8" />
<link rel="shortcut icon" type="image/png" href="http://www.wesnoth.org/mw/skins/glamdrol/ico.png" />
<style type="text/css">@import url('http://www.wesnoth.org/mw/skins/glamdrol/main.css');</style>
<link rel="stylesheet" type="text/css" href="styles/old.css" />
<title>Battle for Wesnoth</title>
</head>
<body>
<div id="global">
<div id="header">
<div id="logo">
<a href="http://www.wesnoth.org/"><img alt="Wesnoth logo" src="http://www.wesnoth.org/mw/skins/glamdrol/wesnoth-logo.jpg" /></a>
</div>
</div>
<div id="nav">
<ul>
<li><a href="http://www.wesnoth.org/">Home</a></li>
<li><a href="http://www.wesnoth.org/wiki/Play">Play</a></li>
<li><a href="http://www.wesnoth.org/wiki/Create">Create</a></li>
<li><a href="http://www.wesnoth.org/forum/">Forums</a></li>
<li><a href="http://www.wesnoth.org/wiki/Support">Support</a></li>
<li><a href="http://www.wesnoth.org/wiki/Project">Project</a></li>
<li><a href="http://www.wesnoth.org/wiki/Credits">Credits</a></li>
</ul>
</div>
<div id="menu">
<a href="http://www.wesnoth.org/index.htm">Home</a> | <a href="http://www.wesnoth.org/project.htm">Project</a> | <a href="http://www.wesnoth.org/downloads.htm">Downloads</a> | <a href="http://www.wesnoth.org/sshots.htm">Screenshots</a> | <a href="http://www.wesnoth.org/faq.htm">FAQ</a> | <a href="http://wesnoth.slack.it/?WesnothManual">Manual</a> | <a href="http://wiki.wesnoth.org/">Wiki</a> | <a href="http://www.wesnoth.org/forum/">Forum</a> | <a href="http://www.wesnoth.org/wiki/Credits">Credits</a>
</div>
<h2>Wesnoth translation stats</h2>
<table class="main" cellpadding="1" cellspacing="0" border="0" width="100%"><tr><td>
<table class="title" cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td>
<table cellpadding="2" cellspacing="0" border="0" width="100%">
<tr>
<td align="left">
Order by:
<? if($order=='trans'){ ?>
<strong># of translated strings</strong> || <a href="?order=alpha&amp;package=<?=$package?>">Team name</a>
<? }else{ ?>
<a href="?order=trans&amp;package=<?=$package?>"># of translated strings</a> || <strong>Team name</strong>
<? } ?>
</td>
<? if(!$nostats){ ?>
<td align="right">
last update: <strong><? echo date("r", $date); ?></strong> &nbsp;
</td>
<? } ?>
</tr>
<tr>
<td align="left">
Show:
<? if($package=='alloff'){ ?>
<strong>All official packages</strong>
<? }else{ ?>
<a href="?package=alloff&amp;order=<?=$order?>">All official packages</a>
<? }
echo "||";
if($package=='all'){ ?>
<strong>All packages</strong>
<? }else{ ?>
<a href="?package=all&amp;order=<?=$order?>">All packages</a>
<? }
for($i = 0; $i < 2; $i++){
if($i==0){
$packs = $existing_packs;
echo "<br/>Official: ";
}else{
$packs = $existing_extra_packs;
echo "<br/>Unofficial: ";
}
$first=true;
foreach($packs as $pack){
if($first){
$first = false;
}else{
echo "||";
}
if($i==1){
$pack = getdomain($pack);
}
if($pack==$package){
if($i==1){
$official=false;
}
?>
<strong><?=$pack?></strong>
<? }else{ ?>
<a href="?package=<?=$pack?>&amp;order=<?=$order?>"><?=$pack?></a> <?
}
}
}
?>
</td>
</tr>
</table>
</td></tr></table>
</td></tr></table>
<div> <br/> </div>
<? if(!$nostats){ ?>
<table class="main" cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td>
<table cellspacing="1" cellpadding="2" border="0" width="100%">
<tr class="header">
<? if($order=='trans'){ ?>
<td class="title">position</td>
<? } ?>
<td class="title">team name</td>
<td class="translated">translated</td>
<td class="translated">%</td>
<td class="fuzzy"><strong>fuzzy</strong></td>
<td class="fuzzy"><strong>%</strong></td>
<td class="untranslated"><strong>untranslated</strong></td>
<td class="untranslated"><strong>%</strong></td>
<td class="title">total</td>
<td class="title">graph</td>
</tr>
<?
$i=0;
$pos=1;
$oldstat[0]=0;
$oldstat[1]=0;
$oldstat[2]=0;
foreach($stats as $lang => $stat){
$total = $stat[1] + $stat[2] + $stat[3];
$class="-" . ($i%2);
if(cmp_translated($stat, $oldstat)!=0){
$pos=$i+1;
}
?>
<tr class="row<?=$class?>">
<?
if($order=='trans'){ ?>
<td align="right"><?=($pos)?></td>
<? }
?>
<td>
<?
if ($package=='alloff' || $package=='allun' || $package=='all' || $package=='allcore'){
echo "<strong>" . $langs[$lang] . "</strong> (" . $lang . ")";
}else{
$repo = ($version == 'trunk') ? 'trunk' : "branches/$branch";
if($official){
echo "<a href='http://svn.gna.org/viewcvs/*checkout*/wesnoth/$repo/po/" . $package . "/" . $lang . ".po?view=markup'>" . $langs[$lang] . "</a> (" .$lang . ")";
}else{
echo "<a href='http://svn.berlios.de/viewcvs/wescamp-i18n/$repo/" . getpackage($package) . "/po/" . $lang . ".po?view=markup'>" . $langs[$lang] . "</a> (" . $lang . ")";
}
} ?>
</td>
<? if(($stat[0]==1) || ($total == 0)){ ?>
<td colspan="8">Error in <? echo $langs[$lang]; ?> translation files</td>
<? }else{ ?>
<td align="right"><? echo $stat[1]; ?></td>
<td class="percentage<?=$class?>" align="right"><? printf("%0.2f", ($stat[1]*100)/$main_total); ?></td>
<td align="right"><? echo $stat[2]; ?></td>
<td class="percentage<?=$class?>" align="right"><? printf("%0.2f", ($stat[2]*100)/$main_total); ?></td>
<td align="right"><? echo ($main_total - $stat[1] - $stat[2]); ?></td>
<td class="percentage<?=$class?>" align="right"><? printf("%0.2f", (($main_total-$stat[1]-$stat[2])*100)/$main_total); ?></td>
<td align="right"><? echo $total; ?></td>
<? $trans = sprintf("%d", ($stat[1]*200)/$main_total);?>
<? $fuzzy = sprintf("%d", ($stat[2]*200)/$main_total);?>
<? $untrans = 200 - $trans - $fuzzy;?>
<td><img src="images/green.png" height="15" width="<?=$trans?>" alt="translated"/><img src="images/blue.png" height="15" width="<?=$fuzzy?>" alt="fuzzy"/><img src="images/red.png" height="15" width="<?=$untrans?>" alt="untranslated"/></td>
<? } ?>
</tr>
<?
$i++;
$oldstat = $stat;
}
?>
<tr class="title">
<?
if($order=='trans'){ ?>
<td align="right"></td>
<? }
?>
<td>
<?
if ($package=='alloff' || $package=='allun' || $package=='all' || $package=='allcore'){
echo "<strong>Template catalog</strong>";
}else{
$repo = ($version == 'trunk') ? 'trunk' : "branches/$branch";
if($official){
echo "<a href='http://svn.gna.org/viewcvs/*checkout*/wesnoth/$repo/po/" . $package . "/" . $package . ".pot?view=markup'>Template catalog</a>";
}else{
echo "<a href='http://svn.berlios.de/viewcvs/wescamp-i18n/$repo/" . getpackage($package) . "/po/" . $package . ".pot?view=markup'>Template catalog</a>";
}
}
?></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td></td>
<td align="right"></td>
<td></td>
<td align="right"><? echo $main_total; ?></td>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
<? }else{ ?>
<h2>No available stats for package <?=$package?></h2>
<? } ?>
<div> <br/> </div>
<div id="footer">
<div id="footnote">
&copy; 2003-2008 The Battle for Wesnoth<br/>
<br/>
<a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0!" height="31" width="88" /></a>
</div>
</div>
</body>
</html>

View File

@ -1,274 +0,0 @@
<?php
include("config.php");
include("functions.php");
include("langs.php");
global $langs;
global $branch;
function cmp_translated($a, $b){
if($a[1]==$b[1]){
if($a[2]==$b[2]){
return 0;
}
return ($a[2] < $b[2]) ? 1 : -1;
}
return ($a[1] < $b[1]) ? 1 : -1;
}
function cmp_alpha($a, $b){
return strcmp($langs[$a],$langs[$b]);
}
$existing_packs = explode(" ", $packages);
$existing_corepacks = explode(" ", $corepackages);
$existing_extra_packs_t = explode(" ", $extratpackages);
$existing_extra_packs_b = explode(" ", $extrabpackages);
sort($existing_extra_packs_t);
sort($existing_extra_packs_b);
$stats = array();
if(!isset($_GET['version'])){
$version = 'trunk';
}else{
$version = $_GET['version'];
}
if(!isset($_GET['lang'])){
$lang = '';
}else{
$lang = $_GET['lang'];
}
if($lang != "") {
$j = 0;
for($i = 0; $i < 2; $i++){
if($i==0){
$packs = $existing_packs;
}else{
$packs = ($version == 'trunk') ? $existing_extra_packs_t : $existing_extra_packs_b;
}
foreach($packs as $pack){
if($i==1) $pack = getdomain($pack);
$statsfile = $version . "stats";
if (!file_exists("stats/" . $pack . "/" . $statsfile)) {
continue;
}
$serialized = file_get_contents("stats/" . $pack . "/" . $statsfile);
$tmpstats = array();
$tmpstats = unserialize($serialized);
$stat = $tmpstats[$lang];
$stats[$j] = array();
$stats[$j][0]=$stat[0]; //errors
$stats[$j][1]=$stat[1]; //translated
$stats[$j][2]=$stat[2]; //fuzzy
$stats[$j][3]=$stat[3]; //untranslated
$stats[$j][4]=$pack; //package name
$stats[$j][5]=$tmpstats["_pot"][1]+$tmpstats["_pot"][2]+$tmpstats["_pot"][3];
$stats[$j][6]=$i; //official
$j++;
}
}
$nostats = 0;
} else {
$nostats = 1;
unset($lang);
}
$firstpack = $existing_packs[0];
$statsfile = $version . "stats";
$filestat = stat("stats/" . $firstpack . "/" . $statsfile);
$date = $filestat[9];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/xhtml; charset=utf-8" />
<link rel="shortcut icon" type="image/png" href="http://www.wesnoth.org/mw/skins/glamdrol/ico.png" />
<style type="text/css">@import url('http://www.wesnoth.org/mw/skins/glamdrol/main.css');</style>
<link rel="stylesheet" type="text/css" href="styles/old.css" />
<title>Battle for Wesnoth</title>
</head>
<body>
<div id="global">
<div id="header">
<div id="logo">
<a href="http://www.wesnoth.org/"><img alt="Wesnoth logo" src="http://www.wesnoth.org/mw/skins/glamdrol/wesnoth-logo.jpg" /></a>
</div>
</div>
<div id="nav">
<ul>
<li><a href="http://www.wesnoth.org/">Home</a></li>
<li><a href="http://www.wesnoth.org/wiki/Play">Play</a></li>
<li><a href="http://www.wesnoth.org/wiki/Create">Create</a></li>
<li><a href="http://www.wesnoth.org/forum/">Forums</a></li>
<li><a href="http://www.wesnoth.org/wiki/Support">Support</a></li>
<li><a href="http://www.wesnoth.org/wiki/Project">Project</a></li>
<li><a href="http://www.wesnoth.org/wiki/Credits">Credits</a></li>
</ul>
</div>
<h2 style="display:inline">Wesnoth translation stats</h2>
(last update: <strong><? echo date("r", $date); ?></strong>)
<table class="main" cellpadding="1" cellspacing="0" border="0" width="100%"><tr><td>
<table class="title" cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td>
<table cellpadding="2" cellspacing="0" border="0" width="100%">
<tr>
<td align="left">
Version:
<? if($version=='trunk'){ ?>
<strong>Development</strong> || <a href="?version=branch&amp;package=<?=$package?>&amp;lang=<?=$lang?>"><?=$branch?></a>
<? }else{ ?>
<a href="?version=trunk&amp;package=<?=$package?>&amp;lang=<?=$lang?>">Development</a> || <strong><?=$branch?></strong>
<? } ?>
</td>
</tr>
<tr>
<td align="left">
Show:
<a href="index.php?package=alloff&amp;order=trans&amp;version=<?=$version?>">Official packages</a>
|| <a href="index.php?package=allcore&amp;order=trans&amp;version=<?=$version?>">Official core packages</a>
|| <a href="index.php?package=all&amp;order=trans&amp;version=<?=$version?>">All packages</a>
|| <a href="index.php?package=allun&amp;order=trans&amp;version=<?=$version?>">All unofficial packages</a>
|| <strong>By language</strong>
<br/>
Language:
<?
$first=true;
foreach($langs as $code => $langname){
if($first){
$first = false;
}else{
echo "||";
}
if($code==$lang){
?>
<strong><?=$langname?></strong>
<? }else{ ?>
<a href="?lang=<?=$code?>&amp;version=<?=$version?>"><?=$langname?></a> <?
}
}
?>
</td>
</tr>
</table>
</td></tr></table>
</td></tr></table>
<div> <br/> </div>
<? if(!$nostats){ ?>
<table class="main" cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td>
<table cellspacing="1" cellpadding="2" border="0" width="100%">
<tr class="header">
<td class="title">package</td>
<td class="translated">translated</td>
<td class="translated">%</td>
<td class="fuzzy"><strong>fuzzy</strong></td>
<td class="fuzzy"><strong>%</strong></td>
<td class="untranslated"><strong>untranslated</strong></td>
<td class="untranslated"><strong>%</strong></td>
<td class="title">total</td>
<td class="title">graph</td>
</tr>
<?
$i=0;
$sumstat[1]=0;
$sumstat[2]=0;
$sumstat[3]=0;
$sumstat[5]=0;
$oldofficial = 0; //0 == official, 1 == not official
foreach($stats as $stat){
$oldofficial = $official;
$official = $stat[6];
$sumstat[1]+=$stat[1];
$sumstat[2]+=$stat[2];
$sumstat[3]+=$stat[3];
$sumstat[5]+=$stat[5];
$total = $stat[1] + $stat[2] + $stat[3];
$class="-" . ($i%2);
if($oldofficial != $official) {
?>
<tr>
<td></td>
</tr>
<?
}
?>
<tr class="row<?=$class?>">
<td>
<?
$repo = ($version == 'trunk') ? 'trunk' : "branches/$branch";
if($official == 0){
echo "<strong><a href='http://svn.gna.org/viewcvs/*checkout*/wesnoth/$repo/po/" . $stat[4]. "/" . $lang . ".po'>" . $stat[4] . "</a></strong>";
}else{
echo "<strong><a href='http://svn.berlios.de/viewcvs/*checkout*/wescamp-i18n/$repo/" . getpackage($stat[4]) . "/po/" . $lang . ".po'>" . $stat[4] . "</a></strong>";
}
?>
</td>
<? if(($stat[0]==1) || ($total == 0) || ($stat[5] == 0)){ ?>
<td colspan="8">Error in <? echo $stat[4] ; ?> translation files</td>
<? }else{ ?>
<td align="right"><? echo $stat[1]; ?></td>
<td class="percentage<?=$class?>" align="right"><? printf("%0.2f", ($stat[1]*100)/$stat[5]); ?></td>
<td align="right"><? echo $stat[2]; ?></td>
<td class="percentage<?=$class?>" align="right"><? printf("%0.2f", ($stat[2]*100)/$stat[5]); ?></td>
<td align="right"><? echo ($stat[5] - $stat[1] - $stat[2]); ?></td>
<td class="percentage<?=$class?>" align="right"><? printf("%0.2f", (($stat[5]-$stat[1]-$stat[2])*100)/$stat[5]); ?></td>
<td align="right"><? echo $total; ?></td>
<? $trans = sprintf("%d", ($stat[1]*200)/$stat[5]);?>
<? $fuzzy = sprintf("%d", ($stat[2]*200)/$stat[5]);?>
<? $untrans = 200 - $trans - $fuzzy;?>
<td><img src="images/green.png" height="15" width="<?=$trans?>" alt="translated"/><img src="images/blue.png" height="15" width="<?=$fuzzy?>" alt="fuzzy"/><img src="images/red.png" height="15" width="<?=$untrans?>" alt="untranslated"/></td>
<? } ?>
</tr>
<?
$i++;
}
?>
<tr class="title">
</td>
<td>Total</td>
<td align="right"><? echo $sumstat[1]; ?></td>
<td></td>
<td align="right"><? echo $sumstat[2]; ?></td>
<td></td>
<td align="right"><? echo $sumstat[3]; ?></td>
<td></td>
<td align="right"><? echo $sumstat[5]; ?></td>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
<? }else{
if(isset($lang)){
?>
<h2>No available stats for lang <?=$lang?></h2>
<?
}
} ?>
<div> <br/> </div>
<div id="footer">
<div id="footnote">
&copy; 2003-2008 The Battle for Wesnoth<br/>
<br/>
<a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0!" height="31" width="88" /></a>
</div>
</div>
</body>
</html>

View File

@ -1,418 +0,0 @@
<?php
include("config.php");
include("functions.php");
include("langs.php");
global $langs;
function cmp_translated($a, $b){
if($a[1]==$b[1]){
if($a[2]==$b[2]){
return 0;
}
return ($a[2] < $b[2]) ? 1 : -1;
}
return ($a[1] < $b[1]) ? 1 : -1;
}
function cmp_alpha($a, $b){
return strcmp($langs[$a],$langs[$b]);
}
$official = true;
$existing_packs = explode(" ", $packages);
$existing_corepacks = explode(" ", $corepackages);
$existing_extra_packs_t = explode(" ", $extratpackages);
$existing_extra_packs_b = explode(" ", $extrabpackages);
$firstpack = $existing_packs[0];
$stats = array();
if(!isset($_GET['package'])){
$package = 'alloff';
}else{
$package = $_GET['package'];
}
if(!isset($_GET['version'])){
$version = 'branch';
}else{
$version = $_GET['version'];
}
if(!isset($_GET['order']) || $_GET['order'] != 'alpha'){
$order='trans';
}else{
$order='alpha';
}
if($package=='alloff' || $package == 'allcore'){
if($package=='alloff'){
$packs = $existing_packs;
}else{
$packs = $existing_corepacks;
}
foreach($packs as $pack){
if($version == 'branch') {
$statsfile = 'branchstats';
} else {
$statsfile = 'trunkstats';
}
if (!file_exists("stats/" . $pack . "/" . $statsfile)) {
continue;
}
$serialized = file_get_contents("stats/" . $pack . "/" . $statsfile);
$tmpstats = array();
$tmpstats = unserialize($serialized);
foreach($tmpstats as $lang => $stat){
if(isset($stats[$lang])){
$stats[$lang][0]+=$stat[0];
$stats[$lang][1]+=$stat[1];
$stats[$lang][2]+=$stat[2];
$stats[$lang][3]+=$stat[3];
}else{
$stats[$lang] = array();
$stats[$lang][0]=$stat[0];
$stats[$lang][1]=$stat[1];
$stats[$lang][2]=$stat[2];
$stats[$lang][3]=$stat[3];
}
}
}
}elseif($package=='all'){
for($i = 0; $i < 2; $i++){
if($i==0){
$packs = $existing_packs;
}else{
$packs = ($version == 'trunk') ? $existing_extra_packs_t : $existing_extra_packs_b;
}
foreach($packs as $pack){
if($version == 'branch') {
$statsfile = 'branchstats';
} else {
$statsfile = 'trunkstats';
}
if($i==1){
$pack = getdomain($pack);
}
if (!file_exists("stats/" . $pack . "/" . $statsfile)) {
continue;
}
$serialized = file_get_contents("stats/" . $pack . "/" . $statsfile);
$tmpstats = array();
$tmpstats = unserialize($serialized);
foreach($tmpstats as $lang => $stat){
if(isset($stats[$lang])){
$stats[$lang][0]+=$stat[0];
$stats[$lang][1]+=$stat[1];
$stats[$lang][2]+=$stat[2];
$stats[$lang][3]+=$stat[3];
}else{
$stats[$lang] = array();
$stats[$lang][0]=$stat[0];
$stats[$lang][1]=$stat[1];
$stats[$lang][2]=$stat[2];
$stats[$lang][3]=$stat[3];
}
}
}
}
}elseif($package=='allun'){
$packs = ($version == 'trunk') ? $existing_extra_packs_t : $existing_extra_packs_b;
foreach($packs as $pack){
$pack = getdomain($pack);
$statsfile = $version . 'stats';
if (!file_exists("stats/" . $pack . "/$statsfile")) {
continue;
}
$serialized = file_get_contents("stats/" . $pack . "/$statsfile");
$tmpstats = array();
$tmpstats = unserialize($serialized);
foreach($tmpstats as $lang => $stat){
if(isset($stats[$lang])){
$stats[$lang][0]+=$stat[0];
$stats[$lang][1]+=$stat[1];
$stats[$lang][2]+=$stat[2];
$stats[$lang][3]+=$stat[3];
}else{
$stats[$lang] = array();
$stats[$lang][0]=$stat[0];
$stats[$lang][1]=$stat[1];
$stats[$lang][2]=$stat[2];
$stats[$lang][3]=$stat[3];
}
}
}
}else{
$package = $_GET['package'];
$statsfile = $version . "stats";
if (!file_exists("stats/" . $package . "/" . $statsfile)) {
$nostats=true;
}else{
$serialized = file_get_contents("stats/" . $package . "/" . $statsfile);
$stats = unserialize($serialized);
}
}
if(!$nostats){
//get total number of strings
$main_total=$stats["_pot"][1]+$stats["_pot"][2]+$stats["_pot"][3];
unset($stats["_pot"]);
$statsfile = $version . "stats";
$filestat = stat("stats/" . $firstpack ."/" . $statsfile);
$date = $filestat[9];
if($order=='trans'){
uasort($stats,"cmp_translated");
}else{
uksort($stats,"cmp_alpha");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/xhtml; charset=utf-8" />
<link rel="shortcut icon" type="image/png" href="http://www.wesnoth.org/mw/skins/glamdrol/ico.png" />
<style type="text/css">@import url('http://www.wesnoth.org/mw/skins/glamdrol/main.css');</style>
<link rel="stylesheet" type="text/css" href="styles/old.css" />
<title>Battle for Wesnoth</title>
</head>
<body>
<div id="global">
<div id="header">
<div id="logo">
<a href="http://www.wesnoth.org/"><img alt="Wesnoth logo" src="http://www.wesnoth.org/mw/skins/glamdrol/wesnoth-logo.jpg" /></a>
</div>
</div>
<div id="nav">
<ul>
<li><a href="http://www.wesnoth.org/">Home</a></li>
<li><a href="http://www.wesnoth.org/wiki/Play">Play</a></li>
<li><a href="http://www.wesnoth.org/wiki/Create">Create</a></li>
<li><a href="http://www.wesnoth.org/forum/">Forums</a></li>
<li><a href="http://www.wesnoth.org/wiki/Support">Support</a></li>
<li><a href="http://www.wesnoth.org/wiki/Project">Project</a></li>
<li><a href="http://www.wesnoth.org/wiki/Credits">Credits</a></li>
</ul>
</div>
<h2 style="display:inline">Wesnoth translation stats</h2>
<? if(!$nostats){ ?>
(last update: <strong><? echo date("r", $date); ?></strong>)
<? } ?>
<table class="main" cellpadding="1" cellspacing="0" border="0" width="100%"><tr><td>
<table class="title" cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td>
<table cellpadding="2" cellspacing="0" border="0" width="100%">
<tr>
<td align="left">
Order by:
<? if($order=='trans'){ ?>
<strong># of translated strings</strong> || <a href="?order=alpha&amp;package=<?=$package?>">Team name</a>
<? }else{ ?>
<a href="?order=trans&amp;package=<?=$package?>"># of translated strings</a> || <strong>Team name</strong>
<? } ?>
</td>
</tr>
<tr>
<td align="left">
Version:
<? if($version=='branch'){ ?>
<a href="?version=trunk&amp;package=<?=$package?>">Development</a> || <strong><?=$branch?></strong>
<? }else{ ?>
<strong>Development</strong> || <a href="?version=branch&amp;package=<?=$package?>"><?=$branch?></a>
<? } ?>
</td>
</tr>
<tr>
<td align="left">
Show:
<? if($package=='alloff'){ ?>
<strong>All official packages</strong>
<? }else{ ?>
<a href="?package=alloff&amp;order=<?=$order?>&amp;version=<?=$version?>">All official packages</a>
<? }
echo " || ";
if($package=='allcore'){ ?>
<strong>Official core packages</strong>
<? }else{ ?>
<a href="?package=allcore&amp;order=<?=$order?>&amp;version=<?=$version?>">Official core packages</a>
<? }
echo " || ";
if($package=='all'){ ?>
<strong>All packages</strong>
<? }else{ ?>
<a href="?package=all&amp;order=<?=$order?>&amp;version=<?=$version?>">All packages</a>
<? }
echo " || ";
if($package=='allun'){ ?>
<strong>All unofficial packages</strong>
<? }else{ ?>
<a href="?package=allun&amp;order=<?=$order?>&amp;version=<?=$version?>">All unofficial packages</a>
<? }
echo " || ";
?>
<a href="index.lang.php?version=<?=$version?>">By language</a>
<?
for($i = 0; $i < 2; $i++){
if($i==0){
$packs = $existing_packs;
echo "<br/>Official: ";
}else{
$packs = ($version == 'trunk') ? $existing_extra_packs_t : $existing_extra_packs_b;
echo "<br/>Unofficial: ";
}
$first=true;
foreach($packs as $pack){
if($first){
$first = false;
}else{
echo "||";
}
$packdisplay = $pack;
if($i==1){
$pack = getdomain($pack);
}
if($pack==$package){
if($i==1){
$official=false;
}
?>
<strong><?=$packdisplay?></strong>
<? }else{ ?>
<a href="?package=<?=$pack?>&amp;order=<?=$order?>&amp;version=<?=$version?>"><?=$packdisplay?></a> <?
}
}
}
?>
</td>
</tr>
</table>
</td></tr></table>
</td></tr></table>
<div> <br/> </div>
<? if(!$nostats){ ?>
<table class="main" cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td>
<table cellspacing="1" cellpadding="2" border="0" width="100%">
<tr class="header">
<? if($order=='trans'){ ?>
<td class="title">position</td>
<? } ?>
<td class="title">team name</td>
<td class="translated">translated</td>
<td class="translated">%</td>
<td class="fuzzy"><strong>fuzzy</strong></td>
<td class="fuzzy"><strong>%</strong></td>
<td class="untranslated"><strong>untranslated</strong></td>
<td class="untranslated"><strong>%</strong></td>
<td class="title">total</td>
<td class="title">graph</td>
</tr>
<?
$i=0;
$pos=1;
$oldstat[0]=0;
$oldstat[1]=0;
$oldstat[2]=0;
foreach($stats as $lang => $stat){
$total = $stat[1] + $stat[2] + $stat[3];
$class="-" . ($i%2);
if(cmp_translated($stat, $oldstat)!=0){
$pos=$i+1;
}
?>
<tr class="row<?=$class?>">
<?
if($order=='trans'){ ?>
<td align="right"><?=($pos)?></td>
<? }
?>
<td>
<?
if ($package=='alloff' || $package=='allun' || $package=='all' || $package=='allcore'){
echo "<strong><a href='index.lang.php?lang=$lang&amp;version=$version'>" . $langs[$lang] . "</a></strong> (" . $lang . ")";
}else{
$repo = ($version == 'trunk') ? 'trunk' : "branches/$branch";
if($official){
echo "<a href='http://svn.gna.org/viewcvs/*checkout*/wesnoth/$repo/po/" . $package . "/" . $lang . ".po'>" . $langs[$lang] . "</a> (" .$lang . ")";
}else{
echo "<a href='http://svn.berlios.de/viewcvs/*checkout*/wescamp-i18n/$repo/" . getpackage($package) . "/po/" . $lang . ".po'>" . $langs[$lang] . "</a> (" . $lang . ")";
}
} ?>
</td>
<? if(($stat[0]==1) || ($total == 0)){ ?>
<td colspan="8">Error in <? echo $langs[$lang] . "($lang)"; ?> translation files</td>
<? }else{ ?>
<td align="right"><? echo $stat[1]; ?></td>
<td class="percentage<?=$class?>" align="right"><? printf("%0.2f", ($stat[1]*100)/$main_total); ?></td>
<td align="right"><? echo $stat[2]; ?></td>
<td class="percentage<?=$class?>" align="right"><? printf("%0.2f", ($stat[2]*100)/$main_total); ?></td>
<td align="right"><? echo ($main_total - $stat[1] - $stat[2]); ?></td>
<td class="percentage<?=$class?>" align="right"><? printf("%0.2f", (($main_total-$stat[1]-$stat[2])*100)/$main_total); ?></td>
<td align="right"><? echo $total; ?></td>
<? $trans = sprintf("%d", ($stat[1]*200)/$main_total);?>
<? $fuzzy = sprintf("%d", ($stat[2]*200)/$main_total);?>
<? $untrans = 200 - $trans - $fuzzy;?>
<td><img src="images/green.png" height="15" width="<?=$trans?>" alt="translated"/><img src="images/blue.png" height="15" width="<?=$fuzzy?>" alt="fuzzy"/><img src="images/red.png" height="15" width="<?=$untrans?>" alt="untranslated"/></td>
<? } ?>
</tr>
<?
$i++;
$oldstat = $stat;
}
?>
<tr class="title">
<?
if($order=='trans'){ ?>
<td align="right"></td>
<? }
?>
<td>
<?
if ($package=='alloff' || $package=='allun' || $package=='all' || $package=='allcore'){
echo "<strong>Template catalog</strong>";
}else{
$repo = ($version == 'trunk') ? 'trunk' : "branches/$branch";
if($official){
echo "<a href='http://svn.gna.org/viewcvs/*checkout*/wesnoth/$repo/po/" . $package . "/" . $package . ".pot?view=markup'>Template catalog</a>";
}else{
echo "<a href='http://svn.berlios.de/viewcvs/wescamp-i18n/$repo/" . getpackage($package) . "/po/" . $package . ".pot?view=markup'>Template catalog</a>";
}
}
?></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td></td>
<td align="right"></td>
<td></td>
<td align="right"><? echo $main_total; ?></td>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
<? }else{ ?>
<h2>No available stats for package <?=$package?></h2>
<? } ?>
<div> <br/> </div>
<div id="footer">
<div id="footnote">
&copy; 2003-2008 The Battle for Wesnoth<br/>
<br/>
<a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0!" height="31" width="88" /></a>
</div>
</div>
</div>
</body>
</html>

View File

@ -1,52 +0,0 @@
<?php
$langs['af'] = 'Afrikaans';
$langs['ar'] = 'Arabic';
$langs['bg'] = 'Bulgarian';
$langs['ca'] = 'Catalan';
$langs['ca_ES@valencia'] = 'Valencian (southern Catalan)';
$langs['cs'] = 'Czech';
$langs['da'] = 'Danish';
$langs['de'] = 'German';
$langs['es'] = 'Spanish';
$langs['eu'] = 'Basque';
$langs['fi'] = 'Finnish';
$langs['fr'] = 'French';
$langs['fur_IT'] = 'Friulian';
$langs['el'] = 'Greek';
$langs['en_GB'] = 'British English';
$langs['eo'] = 'Esperanto';
$langs['et'] = 'Estonian';
$langs['gl'] = 'Galician';
$langs['he'] = 'Hebrew';
$langs['hr'] = 'Croatian';
$langs['hu'] = 'Hungarian';
$langs['id'] = 'Bahasa Indonesian';
$langs['is'] = 'Icelandic';
$langs['it'] = 'Italian';
$langs['ja'] = 'Japanese';
$langs['ko'] = 'Korean';
$langs['la'] = 'Latin';
$langs['lt'] = 'Lithuanian';
$langs['lv'] = 'Latvian';
$langs['mk'] = 'Macedonian';
$langs['mr'] = 'Marathi';
$langs['nl'] = 'Dutch';
$langs['nb_NO'] = 'Norwegian';
//$langs['oc'] = 'Occitan';
$langs['pl'] = 'Polish';
$langs['pt'] = 'Portuguese';
$langs['pt_BR'] = 'Brazilian Portuguese';
$langs['racv'] = 'RACV Language';
$langs['ro'] = 'Romanian';
$langs['ru'] = 'Russian';
$langs['sk'] = 'Slovak';
$langs['sl'] = 'Slovenian';
$langs['sr'] = 'Serbian';
$langs['sr@latin'] = 'Serbian (Latin letters)';
$langs['sv'] = 'Swedish';
$langs['tl'] = 'Filipino';
$langs['tr'] = 'Turkish';
//$langs['vi'] = 'Vietnamese';
$langs['zh_CN'] = 'Chinese';
$langs['zh_TW'] = 'Chinese (Taiwan)';
?>

View File

@ -1,67 +0,0 @@
#global {
width: 100%;
margin: 0;
padding: 0;
font: 0.95em;
}
ul {
line-height: 1.6em;
}
#header {
margin: 0;
padding: 0;
background: #444 url('http://pulsar.unizar.es/~isaac/wesnoth-gettext/westats/images/headerbg.jpg') top repeat-x;
border-bottom: 1px solid #000;
}
#header #logo {
margin: 0;
padding: 0;
text-align: center;
}
#header #logo img {
margin: 0;
padding: 0;
border: none;
}
#header #logo a {
margin: 0;
padding: 0;
color: #654;
text-decoration: none;
font-size: 0.8em;
}
#nav {
margin: 0;
padding: 3px 4px 15px 4px;
background: #272727 url('http://pulsar.unizar.es/~isaac/wesnoth-gettext/westats/images/navbg.png') repeat-x bottom;
text-align: center;
border-top: 1px solid #595959;
font-size: 0.95em;
}
#nav ul, #nav li {
display: inline;
margin: 0;
padding: 0;
}
#nav li {
padding: 0 5px;
}
#nav a {
color: #A74;
font-family: "Trebuchet MS", sans-serif;
font-weight: bold;
text-decoration: none;
}
#nav a:hover {
color: #CCC;
}

View File

@ -1,311 +0,0 @@
body {
margin: 0;
padding: 0;
background: #333;
color: #333;
font-family: "Trebuchet MS", Arial, "Bitstream Vera Sans", Verdana, Tahoma, sans-serif;
width: 100%;
text-align: center;
}
p {
margin: 0 0 1em 0;
}
h2 {
color: #CCC;
font-family: "Tebuchet MS", Arial, Verdana, Tahoma, sans-serif;
margin: 5px 0 4px 0;
}
table.main {
background: #8b898b;
}
table.title {
background: #ececec;
}
tr.row-0 {
background: #ececec;
}
tr.row-1{
background: #ccecec;
}
tr.header {
background: #dddddd;
}
td.title {
font-weight: bold;
}
td.percentage-0 {
background: #f5f5f5;
}
td.percentage-1 {
background: #e0f5f5;
}
td.translated {
color: #05a505;
text-align: center;
font-weight: bold;
}
td.fuzzy {
color: #0505a5;
text-align: center;
font-weight: bold;
}
td.untranslated {
color: #a50505;
text-align: center;
}
h4 {
margin: 1em 0 0 0;
}
a {
color: #A48736;
}
hr {
display: none;
}
/**
* Header
*/
#header {
margin: 0;
padding: 0;
text-align: center;
background: #3A3A3A url(../images/dark-rock.jpg) repeat-x top center;
height: 100px;
}
#header #logo {
margin: 0;
padding: 0;
}
#header #logo img {
margin: 0;
padding: 0;
border: none;
}
/**
* Menu
*/
#menu {
margin: 0;
background: #333;
background: #1E1C1B url(../images/menu-bg.jpg);
padding: 7px;
border-top: 1px solid #BBB;
border-bottom: 1px solid #BBB;
font-size: 0.8em;
font-weight: bold;
}
#menu a {
color: #C9B675;
border: 0;
text-decoration: none;
}
/**
* Translations
*/
#translations {
margin: 0;
/*padding: 5px 5px 5px 22px;*/
padding: 5px;
position: absolute;
top: 10px;
right: 10px;
color: #BBB;
/*background: #1E1C1B url(../images/flags.png) no-repeat left;*/
background: #1E1C1B url(../images/menu-bg.png);
font-size: 0.8em;
border: 1px solid #666;
}
#translations:hover {
border: 1px solid #999;
}
/**
* Main
*/
#main {
padding: 0 8% 0 8%;
color: #333;
font-size: 0.8em;
text-align: left;
line-height: 1.6em;
/* ie5win damn hack */
width: 100%;
}
html>body #main {
width: 84%;
}
/* -------- homepage layout start -------- */
#main #left {
position: relative;
float: left;
width: 49%;
}
#main #right {
position: relative;
float: right;
width: 50%;
}
/* -------- homepage layout end -------- */
#main div.container {
margin: 15px 3px 15px 3px;
padding: 15px;
background: #EEE;
border: 2px solid #AAA;
-moz-border-radius: 4px 4px 4px 4px;
}
#main div.new {
margin: 14px 0 0 0;
}
#main div.new div.new-title {
font-weight: bold;
}
#main div.new div.new-date {
font-size: 0.9em;
}
#main div.new p {
margin: 4px 0 4px 0;
}
#main div.sshots {
text-align: center;
}
#main #sshots a:hover {
border: none;
}
#main div.sshots a {
text-decoration: none;
font-size: 0.7em;
}
#main img {
border: none;
margin: 2px 2px 6px 2px;
padding: 3px;
background: #A48736;
}
#main h3 {
margin: 0;
padding: 0;
}
#main p {
margin: 0px 0 1.2em 0;
}
#main code {
font-size: 1.1em;
}
#main form {
margin: 0 0 15px 0;
}
/**
* Footer
*/
#footer {
clear: both;
margin: 0;
padding: 0 8% 0 8%;
color: #BBB;
font-size: 0.8em;
/* ie5win damn hack */
width: 100%;
}
html>body #footer {
width: 84%;
}
/**
* Languages
*/
#languages {
margin: 0;
padding: 0;
float: left;
text-align: left;
width: 60%;
}
#languages div.container {
margin: 0 0 12px 0;
}
#languages h3 {
margin: 0;
padding: 0;
color: #CCC;
font-size: 1.0em;
font-weight: normal;
}
#languages ul {
margin: 0;
padding: 0;
list-style: none;
}
#languages li {
display: inline;
margin: 0;
padding: 0 5px 0 0;
list-style: none;
}
/**
* Footnotes
*/
#footnote {
margin: 0 0 12px 0;
padding: 0;
float: right;
text-align: right;
width: 40%;
}

View File

@ -1,233 +0,0 @@
body {
margin: 0;
padding: 0;
background: #FFFBF0;
color: #111;
font: 0.88em sans-serif;
}
p {
margin: 0 0 1em 0;
}
table.main {
background: #8b898b;
}
table.title {
background: #ececec;
}
tr.row-0 {
background: #ececec;
}
tr.row-1{
background: #ccecec;
}
tr.header {
background: #dddddd;
}
td.title {
font-weight: bold;
}
td.percentage-0 {
background: #f5f5f5;
}
td.percentage-1 {
background: #e0f5f5;
}
td.translated {
color: #05a505;
text-align: center;
font-weight: bold;
}
td.fuzzy {
color: #0505a5;
text-align: center;
font-weight: bold;
}
td.untranslated {
color: #a50505;
text-align: center;
}
h4 {
margin: 1em 0 0 0;
}
a {
color: #A48736;
}
hr {
display: none;
}
/**
* Main
*/
#main {
padding: 0 8% 0 8%;
color: #333;
font-size: 0.8em;
text-align: left;
line-height: 1.6em;
/* ie5win damn hack */
width: 100%;
}
html>body #main {
width: 84%;
}
/* -------- homepage layout start -------- */
#main #left {
position: relative;
float: left;
width: 49%;
}
#main #right {
position: relative;
float: right;
width: 50%;
}
/* -------- homepage layout end -------- */
#main div.container {
margin: 15px 3px 15px 3px;
padding: 15px;
background: #EEE;
border: 2px solid #AAA;
-moz-border-radius: 4px 4px 4px 4px;
}
#main div.new {
margin: 14px 0 0 0;
}
#main div.new div.new-title {
font-weight: bold;
}
#main div.new div.new-date {
font-size: 0.9em;
}
#main div.new p {
margin: 4px 0 4px 0;
}
#main div.sshots {
text-align: center;
}
#main #sshots a:hover {
border: none;
}
#main div.sshots a {
text-decoration: none;
font-size: 0.7em;
}
#main img {
border: none;
margin: 2px 2px 6px 2px;
padding: 3px;
background: #A48736;
}
#main h3 {
margin: 0;
padding: 0;
}
#main p {
margin: 0px 0 1.2em 0;
}
#main code {
font-size: 1.1em;
}
#main form {
margin: 0 0 15px 0;
}
/**
* Footer
*/
#footer {
clear: both;
margin: 0;
padding: 0 8% 0 8%;
color: #BBB;
font-size: 0.8em;
/* ie5win damn hack */
width: 100%;
}
html>body #footer {
width: 84%;
}
/**
* Languages
*/
#languages {
margin: 0;
padding: 0;
float: left;
text-align: left;
width: 60%;
}
#languages div.container {
margin: 0 0 12px 0;
}
#languages h3 {
margin: 0;
padding: 0;
color: #CCC;
font-size: 1.0em;
font-weight: normal;
}
#languages ul {
margin: 0;
padding: 0;
list-style: none;
}
#languages li {
display: inline;
margin: 0;
padding: 0 5px 0 0;
list-style: none;
}
/**
* Footnotes
*/
#footnote {
margin: 0 0 12px 0;
padding: 0;
float: right;
text-align: right;
width: 40%;
}

View File

@ -1,138 +0,0 @@
body {
margin: 0;
padding: 0;
background: #1E1C1B url(http://www.wesnoth.org/images/menu-bg.jpg);
color: #999;
font-family: "Trebuchet MS", Arial, "Bitstream Vera Sans", Verdana, Tahoma, sans-serif;
width: 100%;
}
p {
margin: 0 0 1em 0;
}
a {
color: #A48736;
}
hr {
display: none;
}
/**
* Main
*/
#main {
font-size: 0.8em;
padding-left: 30px;
padding-right: 30px;
padding-bottom: 10px;
line-height: 1.6em;
}
div h3 {
margin: 0;
padding: 0;
font-size: 1.1em;
}
div ul {
margin: 0;
padding: 0 0 0 10px;
}
#order, #show {
position: relative;
margin: 0;
padding: 0;
}
#order {
float: right;
width: 28%;
}
#show {
float: left;
width: 72%;
}
#order ul, #show ul {
list-style: none;
}
#order li, #show li {
display: inline;
list-style: none;
margin-right: 5px;
}
#order div.container, #show div.container {
margin: 10px 10px 10px 0;
padding: 6px;
border: 3px solid #999;
-moz-border-radius: 5px 5px 5px 5px;
color: #333;
background: #E6E6E6;
}
p.clear {
clear: both;
}
table.statistics {
color: #333;
background: #8B898B;
}
th {
font-weight: bold;
color: #333;
background: #BBB;
}
tr.row-0 {
background: #ECECEC;
}
tr.row-1 {
background: #E1E1E1;
}
td.percentage-0 {
background: #F5F5F5;
}
td.percentage-1 {
background: #F0F0F0;
}
th.translated {
color: #05A505;
text-align: center;
font-weight: bold;
}
th.fuzzy {
color: #0505A5;
text-align: center;
font-weight: bold;
}
th.untranslated {
color: #A50505;
text-align: center;
}
/**
* Footer
*/
#footer img {
margin-top: 20px;
border: 0;
}