Add more i18n

This commit is contained in:
int-y1 2023-01-16 06:42:38 -05:00 committed by Guanzhong Chen
parent cf77afe48e
commit f61e2582e4
3 changed files with 9 additions and 9 deletions

View File

@ -13,6 +13,6 @@
<div id="comment-form-body">{{ form.body }}</div>
</div>
<hr>
<input style="float: right" type="submit" value="Post!" class="button">
<input style="float: right" type="submit" value="{{ _('Post!') }}" class="button">
</form>
</div>

View File

@ -59,11 +59,11 @@
<table id="case-table" class="table">
<thead>
<tr>
<th class="sub-id">ID</th>
<th class="sub-username">Username</th>
<th class="sub-result">Result</th>
<th class="sub-language">Language</th>
<th class="sub-date">Date</th>
<th class="sub-id">{{ _('ID') }}</th>
<th class="sub-username">{{ _('Username') }}</th>
<th class="sub-result">{{ _('Result') }}</th>
<th class="sub-language">{{ _('Language') }}</th>
<th class="sub-date">{{ _('Date') }}</th>
{% for case in range(num_cases) %}
<th class="sub-case">{{ loop.index }}</th>
{% endfor %}

View File

@ -26,7 +26,7 @@
$progress.filter('.progress-complete').show();
break;
case 'FAILURE':
$fail_text.text(status.error || 'Failed');
if (status.error) $fail_text.text(status.error);
$fail.show();
break;
case 'PROGRESS':
@ -89,10 +89,10 @@
<div class="progress-bar progress-bar-animated" role="progressbar"></div>
</div>
<div class="progress progress-complete">
<div class="progress-bar" role="progressbar">Completed!</div>
<div class="progress-bar" role="progressbar">{{ _('Completed!') }}</div>
</div>
<div class="progress progress-failed">
<div class="progress-bar" role="progressbar">Failed!</div>
<div class="progress-bar" role="progressbar">{{ _('Failed!') }}</div>
</div>
</div>
</div>