summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-09-29 11:21:28 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-09-29 11:21:28 -0400
commit31d608abefb548670ebc19d1c6a97f6961d99187 (patch)
tree55d978771c2797f17da5175a9ae560dd8128bb5b
parenteca8c6ba5e6965f33d01b04b194db6c64f0bcca8 (diff)
downloadtranslate-31d608abefb548670ebc19d1c6a97f6961d99187.tar.gz
translate-31d608abefb548670ebc19d1c6a97f6961d99187.zip
frontpage: Show yellow/red for translations that have a lot of "identical to English" strings.
-rw-r--r--rockbox.css6
-rw-r--r--templates/frontpage.tpl10
2 files changed, 15 insertions, 1 deletions
diff --git a/rockbox.css b/rockbox.css
index ebcd048..132ced0 100644
--- a/rockbox.css
+++ b/rockbox.css
@@ -96,3 +96,9 @@ tr.good td {
tr.poor td {
background-color: #DDAA9B;
}
+td.questionable {
+ background-color: #cccc00;
+}
+td.poor {
+ background-color: #ddaa9b;
+}
diff --git a/templates/frontpage.tpl b/templates/frontpage.tpl
index fc4bef6..0a2c63c 100644
--- a/templates/frontpage.tpl
+++ b/templates/frontpage.tpl
@@ -50,6 +50,14 @@ possibly slightly safer way.
{else}
{assign var='rowclass' value=''}
{/if}
+ {if ($language.voicedup + $language.destdup) > 400}
+ {assign var='englishclass' value='poor'}
+ {elseif ($language.voicedup + $language.destdup) > 100}
+ {assign var='englishclass' value='questionable'}
+ {else}
+ {assign var='englishclass' value=''}
+ {/if}
+
<tr class="{$rowclass}">
<td>
<img class="flagthumb" src="flags/22/{$language.flag}.png" />
@@ -83,7 +91,7 @@ possibly slightly safer way.
<td>{$language.source}</td>
<td>{$language.dest}</td>
<td>{$language.voice}</td>
- <td>{$language.voicedup + $language.destdup}</td>
+ <td class="{$englishclass}">{$language.voicedup + $language.destdup}</td>
</tr>
{/foreach}
</table>