Generate statistics.xhtml that can be viewed offline

Bu işleme şunda yer alıyor:
Andrius Štikonas 2008-10-15 18:54:21 +03:00
ebeveyn b93bb5328e
işleme 6086e575aa
7 değiştirilmiş dosya ile 372 ekleme ve 8 silme

BIN
images/blue.png Normal dosya

İkili dosya gösterilmiyor.

Sonra

Genişlik:  |  Yükseklik:  |  Boyut: 131 B

BIN
images/green.png Normal dosya

İkili dosya gösterilmiyor.

Sonra

Genişlik:  |  Yükseklik:  |  Boyut: 130 B

BIN
images/headerbg.jpg Normal dosya

İkili dosya gösterilmiyor.

Sonra

Genişlik:  |  Yükseklik:  |  Boyut: 7.0 KiB

BIN
images/navbg.png Normal dosya

İkili dosya gösterilmiyor.

Sonra

Genişlik:  |  Yükseklik:  |  Boyut: 318 B

BIN
images/red.png Normal dosya

İkili dosya gösterilmiyor.

Sonra

Genişlik:  |  Yükseklik:  |  Boyut: 124 B

BIN
images/wesnoth-logo.jpg Normal dosya

İkili dosya gösterilmiyor.

Sonra

Genişlik:  |  Yükseklik:  |  Boyut: 12 KiB

Dosyayı Görüntüle

@ -2,6 +2,7 @@
# Check translations, generate verbose statistics.
# Copyright (C) 2004 Recai Oktas <roktas@omu.edu.tr>
# Copyright (C) 2007-2008 Andrius Štikonas <stikonas@gmail.com> (my code can also be used under GPLv3 or any later)
# MediaWiki 'glamdrol' style sheet Copyright (C) 2005 by Jordą Polo <jorda AT ettin DOT org> Based on 'monobook', by Gabriel Wicke
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as published by
@ -46,16 +47,380 @@ for BRANCH in $TRUNK $BRANCHES; do
<head>
<meta http-equiv=\"content-type\" content=\"application/xhtml+xml; 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=\"http://gettext.wesnoth.org/styles/old.css\" />
<title>Battle for Wesnoth</title>
</head>
<body>
<style type=\"text/css\">
body {
margin: 0;
padding: 0;
background: #FFFBF0;
color: #111;
font: 0.88em sans-serif;
}
#global {
width: 100%;
margin: 0;
padding: 0;
font-size: 0.95em;
}
p {
margin: 0.4em 0em 0.5em 0em;
line-height: 1.6em;
}
img {
border: none;
vertical-align: middle;
}
p img {
margin: 0;
}
hr {
height: 1px;
margin: 0.2em 0 0.2em 0;
background: #BBB;
color: #BBB;
border: 0;
}
/* links */
a {
color: #259;
}
/*
a:visited {
color: #959;
color: #755499;
color: #5F5399;
}
*/
a.new {
color: #BA3311;
}
a.stub {
color: #723;
}
/* titles */
h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0.7em 0 0.17em 0;
background: none;
color: #333;
font-family: Junicode, Baskerville, FreeSerif, \"Times New Roman\", serif;
font-weight: bold;
}
h2 {
color: #111;
border-bottom: 1px solid #BBB;
}
h4, h5, h6 {
color: #555;
font-family: Arial, sans-serif;
}
h1 { font-size: 185%; }
h2 { font-size: 160%; }
h3 { font-size: 140%; }
h4 { font-size: 105%; }
h5 { font-size: 95%; }
h6 { font-size: 90%; }
/* lists */
ul {
margin: 0.3em 0 0 1.5em;
padding: 0;
line-height: 1.6em;
list-style-type: square;
list-style-image: url('bullet.gif');
}
ol {
margin: 0.3em 0 0 3.2em;
padding: 0;
line-height: 1.6em;
list-style-image: none;
}
li {
margin-bottom: 0.1em;
}
dt {
margin-bottom: 0.1em;
font-weight: bold;
}
dl{
margin-top: 0.2em;
margin-bottom: 0.5em;
}
dd {
margin-left: 2em;
margin-bottom: 0.1em;
line-height: 1.6em;
}
/* tables */
table {
font-size: 100%;
border-spacing: 0;
}
table td, table th {
padding: 3px;
}
/*
* 3. Header
*/
#header {
margin: 0;
padding: 0;
background: #444 url('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;
}
/*
* 3. Navigation
*/
#nav {
margin: 0;
padding: 3px 4px 15px 4px;
background: #272727 url('images/navbg.png') repeat-x bottom;
text-align: center;
border-top: 1px solid #595959;
}
#nav ul, #nav li {
display: inline;
margin: 0;
padding: 0;
}
#nav li {
padding: 0 5px;
}
#nav a {
/*color: #A74;*/
/*color: #DBB672;*/
color: #B48648;
font-family: \"Trebuchet MS\", sans-serif;
font-weight: bold;
text-decoration: none;
}
#nav a:hover {
color: #CCC;
}
/*
* 4. Main
*/
#main {
margin: 0 8% 0 8%;
padding: 0 10px;
line-height: 1.6em;
}
html>body #main {
margin: 0 auto;
width: auto;
max-width: 66em;
}
#content {
margin: 10px 22px;
}
#lastmod {
margin: 10px 0;
padding: 8px 0;
font-size: 0.85em;
}
/*
* 5. Footer
*/
#footer {
margin: 10px 22px;
padding: 10px 0;
font-size: 0.85em;
border-top: 1px solid #999;
}
#footer a {
color: #333;
}
#footer .portlet a {
color: #246;
}
#footer .portlet a.new, #p-cactions .new a {
color: #900;
}
#note {
margin-top: 10px;
padding-top: 5px;
text-align: left;
}
#note p {
text-align: left;
line-height: 1em;
}
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;
}
/**
* 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%;
}
/**
* Footnotes
*/
#footnote {
margin: 0 0 12px 0;
padding: 0;
float: right;
text-align: right;
width: 40%;
}
</style>
<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>
<a href=\"http://www.wesnoth.org/\"><img alt=\"Wesnoth logo\" src=\"images/wesnoth-logo.jpg\" /></a>
</div>
</div>
@ -200,7 +565,7 @@ for BRANCH in $TRUNK $BRANCHES; do
n4=`printf '%s%f\n' "scale=2; 3*" $rt | bc`
n6=`printf '%s%f\n' "scale=2; 3*" $rf | bc`
n8=`printf '%s%f\n' "scale=2; 3*" $ru | bc`
printf '%s%.2f%s%.2f%s%.2f%s\n' " <td><img src=\"http://gettext.wesnoth.org/images/green.png\" height=\"15\" width=\"" $n4 "\" alt=\"translated\"/><img src=\"http://gettext.wesnoth.org/images/blue.png\" height=\"15\" width=\"" $n6 "\" alt=\"fuzzy\"/><img src=\"http://gettext.wesnoth.org/images/red.png\" height=\"15\" width=\"" $n8 "\" alt=\"untranslated\"/></td>" >> $STATSFILE
printf '%s%.2f%s%.2f%s%.2f%s\n' " <td><img src=\"images/green.png\" height=\"15\" width=\"" $n4 "\" alt=\"translated\"/><img src=\"images/blue.png\" height=\"15\" width=\"" $n6 "\" alt=\"fuzzy\"/><img src=\"images/red.png\" height=\"15\" width=\"" $n8 "\" alt=\"untranslated\"/></td>" >> $STATSFILE
echo "</tr>" >> $STATSFILE
done
@ -252,15 +617,14 @@ for BRANCH in $TRUNK $BRANCHES; do
nrf=`printf '%s%f\n' "scale=2; 3*" $nrf | bc`
nru=`printf '%s%f\n' "scale=2; 3*" $nru | bc`
printf '%s%.2f%s%.2f%s%.2f%s\n' "<td><img src=\"http://gettext.wesnoth.org/images/green.png\" height=\"15\" width=\"" $nrt "\" alt=\"translated\"/><img src=\"http://gettext.wesnoth.org/images/blue.png\" height=\"15\" width=\"" $nrf "\" alt=\"fuzzy\"/><img src=\"http://gettext.wesnoth.org/images/red.png\" height=\"15\" width=\"" $nru "\" alt=\"untranslated\"/></td>" >> $STATSFILE
printf '%s%.2f%s%.2f%s%.2f%s\n' "<td><img src=\"images/green.png\" height=\"15\" width=\"" $nrt "\" alt=\"translated\"/><img src=\"images/blue.png\" height=\"15\" width=\"" $nrf "\" alt=\"fuzzy\"/><img src=\"images/red.png\" height=\"15\" width=\"" $nru "\" alt=\"untranslated\"/></td>" >> $STATSFILE
echo "</tr>
</table>
</td>
</tr>
</table>
<div> <br/> </div>
<div><br/></div>
<div id=\"footer\">
<div id=\"footnote\">
&copy; 2003-"`date +%Y`" The Battle for Wesnoth<br/>
<br/>