Skip to content

Commit cb8fc68

Browse files
committedNov 7, 2017
about translators: grey background, centered flags, replace flag for german
1 parent a102490 commit cb8fc68

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed
 

‎doc/TRANSLATORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<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>
1+
<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>
22

33
<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>
44
<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>

‎images/flags/de.svg

Lines changed: 10 additions & 9 deletions
Loading

‎scripts/tsstat.pl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
print "<head>";
177177
print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>";
178178
print "<style>";
179-
print "body{font-family:sans-serif;}";
179+
print "body {font-family:sans-serif; background-color:#d3d3d3; }";
180180
print "table {font-size:80%;border-collapse: collapse;}";
181181
print "td {border-left:solid 1px #aaaaaa;border-right:solid 1px #aaaaaa;padding:1px 10px;}";
182182
print ".bartodo{ background-color:red;width:100px;height:20px;}";
@@ -187,7 +187,7 @@
187187
for my $l (sort { $b->{percentage} <=> $a->{percentage} } @lang) {
188188
last if $l->{percentage} < 35;
189189
printf "\n<tr>"
190-
. '<td><img src="flags/%s.svg" height="20"></td><td nowrap>%s</td>'
190+
. '<td align="center"><img src="flags/%s.svg" height="20"></td><td nowrap>%s</td>'
191191
. '<td nowrap>%s</td><td>%d</td><td>%d</td><td>%d</td>'
192192
. '<td><div class="bartodo"><div class="bardone" style="width:%dpx">%.1f</div></div></td>'
193193
. '<td>%s</td>'
@@ -201,6 +201,7 @@
201201
print "</table></body></html>\n";
202202
} else {
203203
print "<style>";
204+
print "body { font-family:sans-serif; background-color:#d3d3d3; }";
204205
print "table {font-size:80%;}";
205206
print "th {text-align:left; }";
206207
print ".bartodo{ background-color:red;width:100px;height:20px;}";
@@ -211,7 +212,7 @@
211212
for my $l (sort { $b->{percentage} <=> $a->{percentage} } @lang) {
212213
last if $l->{percentage} < 35;
213214
printf "\n<tr>"
214-
. '<td><img src="qrc:/images/flags/%s.svg" height="20"></td><td>%s</td>'
215+
. '<td align="center"><img src="qrc:/images/flags/%s.svg" height="20"></td><td>%s</td>'
215216
. '<td><div title="finished:%d unfinished:%d untranslated:%d" class="bartodo"><div class="bardone" style="width:%dpx">%.1f</div></div></td>'
216217
. '<td>%s</td>'
217218
. '</tr>',

0 commit comments

Comments
 (0)
Please sign in to comment.