Skip to content

Commit 6f526f3

Browse files
committed
Add number of entries
1 parent f34796a commit 6f526f3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

language.html.jinja

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<thead>
1616
<tr>
1717
<th>path</th>
18-
<th>completion</th>
18+
<th>completion*</th>
1919
</tr>
2020
</thead>
2121
<tbody>
@@ -24,10 +24,10 @@
2424
<td>▶ {{ directory.path.name }} ({{ directory.files_stats | length }})</td>
2525
<td data-label="completion">
2626
<div class="progress-bar" style="width: {{ directory.completion }}%;background-color: #4caf50;">
27-
{{ '{:.2f}%'.format(directory.completion) }}
27+
{{ '{:.2f}%'.format(directory.completion) }} ({{ directory.translated }} / {{ directory.entries }})
2828
</div>
2929
<div class="progress-bar-outer-label">
30-
{{ '{:.2f}%'.format(directory.completion) }}
30+
{{ '{:.2f}%'.format(directory.completion) }} ({{ directory.translated }} / {{ directory.entries }})
3131
</div>
3232
</td>
3333
</tr>
@@ -36,17 +36,18 @@
3636
<td>{{ file.filename }}</td>
3737
<td data-label="completion">
3838
<div class="progress-bar" style="width: {{ file.percent_translated }}%;background-color: #4caf50;">
39-
{{ file.percent_translated }}%
39+
{{ file.percent_translated }}% ({{ file.translated }} / {{ file.entries }})
4040
</div>
4141
<div class="progress-bar-outer-label">
42-
{{ file.percent_translated }}%
42+
{{ file.percent_translated }}% ({{ file.translated }} / {{ file.entries }})
4343
</div>
4444
</td>
4545
</tr>
4646
{% endfor %}
4747
{% endfor %}
4848
</tbody>
4949
</table>
50+
<p>* in brackets: number of strings (entries) translated / total</p>
5051
</body>
5152
<script>
5253
function updateProgressBarVisibility() {

0 commit comments

Comments
 (0)