Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sat, 21 Sep 2019 12:38:52 UTC Commit: b83c890b3f1505014df3b830ce3c3f0740dc182c https://github.com/geany/www.geany.org/commit/b83c890b3f1505014df3b830ce3c3f...
Log Message: ----------- Use one decimal place for translation statistics
This reduces rounding errors, e.g. showing 3 of 1000 untranslated strings as 100%.
Modified Paths: -------------- static_docs/templates/pages/i18n.html
Modified: static_docs/templates/pages/i18n.html 14 lines changed, 7 insertions(+), 7 deletions(-) =================================================================== @@ -25,20 +25,20 @@ <h2>Geany translation statistics</h2> {% for language_data in i18n_statistics.catalog_statistics|dictsort:"language_name" %} <tr> <td class="col-md-4"><a href="{{ static_docs_geany_destination_url }}/{{ language_data.filename }}">{{ language_data.language_name }}</a> ({{ language_data.last_translator }})</td> - <td class="col-md-1">{{ language_data.statistics.translated }} ({{ language_data.statistics.percentage_translated|floatformat:0 }} %)</td> - <td class="col-md-1">{{ language_data.statistics.fuzzy }} ({{ language_data.statistics.percentage_fuzzy|floatformat:0 }} %)</td> - <td class="col-md-1">{{ language_data.statistics.untranslated }} ({{ language_data.statistics.percentage_untranslated|floatformat:0 }} %)</td> + <td class="col-md-1">{{ language_data.statistics.translated }} ({{ language_data.statistics.percentage_translated|floatformat:1 }} %)</td> + <td class="col-md-1">{{ language_data.statistics.fuzzy }} ({{ language_data.statistics.percentage_fuzzy|floatformat:1 }} %)</td> + <td class="col-md-1">{{ language_data.statistics.untranslated }} ({{ language_data.statistics.percentage_untranslated|floatformat:1 }} %)</td> <td class="col-md-3 hidden-xs"> <div class="progress progress-striped"> <div class="progress-bar progress-bar-success" style="width: {{ language_data.statistics.percentage_translated }}%"> - <span class="sr-only">Translated {{ language_data.statistics.percentage_translated|floatformat:0 }} %</span> - {{ language_data.statistics.percentage_translated|floatformat:0 }} % + <span class="sr-only">Translated {{ language_data.statistics.percentage_translated|floatformat:1 }} %</span> + {{ language_data.statistics.percentage_translated|floatformat:1 }} % </div> <div class="progress-bar progress-bar-warning" style="width: {{ language_data.statistics.percentage_fuzzy }}%"> - <span class="sr-only">Fuzzy {{ language_data.statistics.percentage_fuzzy|floatformat:0 }} %</span> + <span class="sr-only">Fuzzy {{ language_data.statistics.percentage_fuzzy|floatformat:1 }} %</span> </div> <div class="progress-bar progress-bar-danger" style="width: {{ language_data.statistics.percentage_untranslated }}%"> - <span class="sr-only">Untranslated {{ language_data.statistics.percentage_untranslated|floatformat:0 }} %</span> + <span class="sr-only">Untranslated {{ language_data.statistics.percentage_untranslated|floatformat:1 }} %</span> </div> </div> </td>
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).