Commit 263f1285 authored by Gil Forcada's avatar Gil Forcada

Add a description to help understand the statistics

parent 20b69af4
......@@ -4,7 +4,7 @@
<table>
<tr>
<td class="leftcell" colspan="3">{{ modstats.totaltransperc }}% ({{ modstats.totaltrans }}/{{ modstats.totalfuzzy }}/{{ modstats.totaluntrans }})</td>
<td class="leftcell" colspan="3" title="{% trans "Translated/Fuzzy/Untranslated" %}">{{ modstats.totaltransperc }}% ({{ modstats.totaltrans }}/{{ modstats.totalfuzzy }}/{{ modstats.totaluntrans }})</td>
<td style="width: 108px; text-align: center;"><div class="graph">
<div class="translated" style="width: {{ modstats.totaltransperc }}px;"></div>
<div class="fuzzy" style="{{ LANGUAGE_BIDI|yesno:"right,left" }}:{{ modstats.totaltransperc }}px; width:{{ modstats.totalfuzzyperc }}px;"></div>
......@@ -66,7 +66,7 @@
{% endif %}
</td>
<td><span class="branch">{{ branch }}</span></td>
<td><span style="display:none;">{{ stat.tr_percentage }}</span>{{ stat|num_stats:scope }}</td>
<td title="{% trans "Translated/Fuzzy/Untranslated" %}"><span style="display:none;">{{ stat.tr_percentage }}</span>{{ stat|num_stats:scope }}</td>
<td style="width: 108px; text-align: center;">
<div class="graph">{{ stat|vis_stats:scope }}</div>
</td>
......@@ -104,4 +104,3 @@
{% endfor %}
</ul>
{% endif %}
......@@ -23,18 +23,18 @@ Following variables should be set:
{{ stat.description }}
</td>
<td class="stats_numb"><a href="{% url language_release lang.locale,stat.name,"ui" %}">
<td class="stats_numb" title="{% trans "Translated/Fuzzy/Untranslated" %}"><a href="{% url language_release lang.locale,stat.name,"ui" %}">
{{ stat.ui|num_stats }}</a>
</td>
<td style="width: 108px; text-align: center;">
<div class="graph">{{ stat.ui|vis_stats }}</div>
</td>
<td class="stats_numb"><a href="{% url language_release lang.locale,stat.name,"ui-part" %}">
<td class="stats_numb" title="{% trans "Translated/Fuzzy/Untranslated" %}"><a href="{% url language_release lang.locale,stat.name,"ui-part" %}">
{{ stat.ui_part|num_stats }}</a>
</td>
{% if stat.doc.total %}
<td class="stats_numb"><a href="{% url language_release lang.locale,stat.name,"doc" %}">
<td class="stats_numb" title="{% trans "Translated/Fuzzy/Untranslated" %}"><a href="{% url language_release lang.locale,stat.name,"doc" %}">
{{ stat.doc|num_stats }}</a>
</td>
<td style="width: 108px; text-align: center;">
......
......@@ -65,13 +65,15 @@ $(document).ready(function() {
<div style="display: inline-block">
<a href="{{ po_url }}"><img src="{{ MEDIA_URL }}img/download.png" alt="{% trans "Download PO file" %}" /></a>
{% trans "PO file statistics:" %} <br />
{% trans "Strings:" %} {{ stats|num_stats:"full" }}&nbsp;
<div class="graph graphinline">
{{ stats|vis_stats:"full" }}
</div>
{% trans "Words:" %} {{ stats|num_word_stats:"full" }}&nbsp;
<div class="graph graphinline">
{{ stats|vis_word_stats:"full" }}
<div title="{% trans "Translated/Fuzzy/Untranslated" %}">
{% trans "Strings:" %} {{ stats|num_stats:"full" }}&nbsp;
<div class="graph graphinline">
{{ stats|vis_stats:"full" }}
</div>
{% trans "Words:" %} {{ stats|num_word_stats:"full" }}&nbsp;
<div class="graph graphinline">
{{ stats|vis_word_stats:"full" }}
</div>
</div>
</div>
{% if po_url_reduced %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment