Skip to content
Permalink
Browse files

about translators: grey background, centered flags, replace flag for …

…german
  • Loading branch information
jef-n committed Nov 7, 2017
1 parent a102490 commit cb8fc6860d991ecf6cd3b95afb3b604976378b6b
Showing with 15 additions and 13 deletions.
  1. +1 −1 doc/TRANSLATORS
  2. +10 −9 images/flags/de.svg
  3. +4 −3 scripts/tsstat.pl
@@ -1,4 +1,4 @@
<style>table {font-size:80%;}th {text-align:left; }.bartodo{ background-color:red;width:100px;height:20px;}.bardone{ background-color:green;width:80px;height:20px;font-size:80%;text-align:center;padding-top:4px;height:16px;color:white;}</style><table><tr><th colspan="2" style="width:250px;">Language</th><th>Finished %</th><th>Translators</th></tr>
<style>body { font-family:sans-serif; background-color:#d3d3d3; }table {font-size:80%;}th {text-align:left; }.bartodo{ background-color:red;width:100px;height:20px;}.bardone{ background-color:green;width:80px;height:20px;font-size:80%;text-align:center;padding-top:4px;height:16px;color:white;}</style><table><tr><th colspan="2" style="width:250px;">Language</th><th>Finished %</th><th>Translators</th></tr>

<tr><td><img src="qrc:/images/flags/de.svg" height="20"></td><td>German</td><td><div title="finished:18238 unfinished:0 untranslated:0" class="bartodo"><div class="bardone" style="width:100px">100.0</div></div></td><td>Jürgen E. Fischer, Stephan Holl, Otto Dassau, Werner Macho</td></tr>
<tr><td><img src="qrc:/images/flags/eu.svg" height="20"></td><td>Basque</td><td><div title="finished:18238 unfinished:0 untranslated:0" class="bartodo"><div class="bardone" style="width:100px">100.0</div></div></td><td>Asier Sarasua Garmendia, Irantzu Alvarez</td></tr>
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="600" viewBox="0 0 5 3">
<desc>Flag of Germany</desc>
<rect id="black_stripe" width="5" height="3" y="0" x="0" fill="#000"/>
<rect id="red_stripe" width="5" height="2" y="1" x="0" fill="#D00"/>
<rect id="gold_stripe" width="5" height="1" y="2" x="0" fill="#FFCE00"/>
</svg>
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="450" height="300">
<rect width="450" height="300" fill="#de1800"/>
<rect width="225" height="100" fill="#000"/>
<rect y="200" width="225" height="100" fill="#ffce00"/>
<rect x="225" y="100" width="225" height="100" fill="#fff"/>
<rect x="150" y="75" width="150" height="150" fill="#de1800"/>
<rect x="210" y="100" width="30" height="100" fill="#fff"/>
<rect x="175" y="135" width="100" height="30" fill="#fff"/>
</svg>
@@ -176,7 +176,7 @@
print "<head>";
print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>";
print "<style>";
print "body{font-family:sans-serif;}";
print "body {font-family:sans-serif; background-color:#d3d3d3; }";
print "table {font-size:80%;border-collapse: collapse;}";
print "td {border-left:solid 1px #aaaaaa;border-right:solid 1px #aaaaaa;padding:1px 10px;}";
print ".bartodo{ background-color:red;width:100px;height:20px;}";
@@ -187,7 +187,7 @@
for my $l (sort { $b->{percentage} <=> $a->{percentage} } @lang) {
last if $l->{percentage} < 35;
printf "\n<tr>"
. '<td><img src="flags/%s.svg" height="20"></td><td nowrap>%s</td>'
. '<td align="center"><img src="flags/%s.svg" height="20"></td><td nowrap>%s</td>'
. '<td nowrap>%s</td><td>%d</td><td>%d</td><td>%d</td>'
. '<td><div class="bartodo"><div class="bardone" style="width:%dpx">%.1f</div></div></td>'
. '<td>%s</td>'
@@ -201,6 +201,7 @@
print "</table></body></html>\n";
} else {
print "<style>";
print "body { font-family:sans-serif; background-color:#d3d3d3; }";
print "table {font-size:80%;}";
print "th {text-align:left; }";
print ".bartodo{ background-color:red;width:100px;height:20px;}";
@@ -211,7 +212,7 @@
for my $l (sort { $b->{percentage} <=> $a->{percentage} } @lang) {
last if $l->{percentage} < 35;
printf "\n<tr>"
. '<td><img src="qrc:/images/flags/%s.svg" height="20"></td><td>%s</td>'
. '<td align="center"><img src="qrc:/images/flags/%s.svg" height="20"></td><td>%s</td>'
. '<td><div title="finished:%d unfinished:%d untranslated:%d" class="bartodo"><div class="bardone" style="width:%dpx">%.1f</div></div></td>'
. '<td>%s</td>'
. '</tr>',

0 comments on commit cb8fc68

Please sign in to comment.
You can’t perform that action at this time.