Skip to content

Commit e45aca5

Browse files
rg " endblocktrans " --files-with-matches | xargs sed -i "s/ endblocktrans / endblocktranslate /g"
1 parent bcdca7d commit e45aca5

31 files changed

+73
-73
lines changed

evap/contributor/templates/contributor_evaluation_form.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818

1919
<div class="callout callout-info small">
2020
{% if editable %}
21-
{% blocktranslate %}Please review the evaluation's details below, add all contributors and select suitable questionnaires. Once everything is okay, please approve the evaluation on the bottom of the page.{% endblocktrans %}
21+
{% blocktranslate %}Please review the evaluation's details below, add all contributors and select suitable questionnaires. Once everything is okay, please approve the evaluation on the bottom of the page.{% endblocktranslate %}
2222
{% else %}
23-
{% blocktranslate %}You cannot edit this evaluation because it has already been approved.{% endblocktrans %}
23+
{% blocktranslate %}You cannot edit this evaluation because it has already been approved.{% endblocktranslate %}
2424
{% endif %}
2525
</div>
2626
<h3>
@@ -99,7 +99,7 @@ <h5 class="card-title me-auto">{% translate 'Evaluation data' %}</h5>
9999
<span slot="question">
100100
{% blocktranslate trimmed %}
101101
Do you want to approve this evaluation? This will allow the evaluation team to proceed with the preparation, but you won't be able to make any further changes.
102-
{% endblocktrans %}
102+
{% endblocktranslate %}
103103
</span>
104104

105105
<button slot="show-button" type="button" class="btn btn-success">{% translate 'Save and approve' %}</button>
@@ -133,11 +133,11 @@ <h5 class="modal-title" id="previewModalLabel">{% translate 'Preview' %}</h5>
133133
{% block modals %}
134134
{{ block.super }}
135135

136-
{% blocktranslate asvar title with evaluation_name=evaluation.full_name %}Request account creation for {{ evaluation_name }}{% endblocktrans %}
136+
{% blocktranslate asvar title with evaluation_name=evaluation.full_name %}Request account creation for {{ evaluation_name }}{% endblocktranslate %}
137137
{% translate 'Please tell us which new account we should create. We need the name and email for all new accounts.' as teaser %}
138138
{% include 'contact_modal.html' with modal_id='createAccountRequestModal' user=request.user title=title teaser=teaser %}
139139

140-
{% blocktranslate asvar title with evaluation_name=evaluation.full_name %}Request evaluation changes for {{ evaluation_name }}{% endblocktrans %}
140+
{% blocktranslate asvar title with evaluation_name=evaluation.full_name %}Request evaluation changes for {{ evaluation_name }}{% endblocktranslate %}
141141
{% translate 'Please tell us what changes to the evaluation we should make.' as teaser %}
142142
{% include 'contact_modal.html' with modal_id='changeEvaluationRequestModal' user=request.user title=title teaser=teaser %}
143143
{% endblock %}

evap/evaluation/templates/contribution_formset.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h5 class="card-title me-auto">{% translate 'Contributors' %}</h5>
3838
{% endfor %}
3939
{% include 'bootstrap_form_errors.html' with errors=form.contributor.errors %}
4040
{{ form.contributor }}
41-
<div class="form-check mt-2" data-bs-toggle="tooltip" data-bs-placement="right" title="{% blocktranslate %}Select this option if no questions about this person shall be included in the evaluation. This can be used if the person does not visibly contribute and is solely added to receive permissions for editing the evaluation or viewing text answers.{% endblocktrans %}">
41+
<div class="form-check mt-2" data-bs-toggle="tooltip" data-bs-placement="right" title="{% blocktranslate %}Select this option if no questions about this person shall be included in the evaluation. This can be used if the person does not visibly contribute and is solely added to receive permissions for editing the evaluation or viewing text answers.{% endblocktranslate %}">
4242
<input class="form-check-input" id="{{ form.does_not_contribute.id_for_label }}" name="{{ form.does_not_contribute.html_name }}"
4343
type="checkbox"{% if form.does_not_contribute.value %} checked{% endif %}
4444
{% if form.does_not_contribute.field.disabled %} disabled{% endif %} />
@@ -58,7 +58,7 @@ <h5 class="card-title me-auto">{% translate 'Contributors' %}</h5>
5858
<br /><br />
5959
<span class="{% if form.label.errors %}error-label{% endif %}">{% translate 'Label' %}:
6060
<span data-bs-toggle="tooltip" data-bs-placement="right" class="fas fa-circle-info"
61-
title="{% blocktranslate %}This text will be shown next to the contributor's name in the questionnaire.{% endblocktrans %}">
61+
title="{% blocktranslate %}This text will be shown next to the contributor's name in the questionnaire.{% endblocktranslate %}">
6262
</span>
6363
</span>
6464
<br />

evap/evaluation/templates/external_user_confirm_login.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h4 class="card-title text-primary">
1818
<form class="d-flex flex-column" role="form" method="POST">
1919
{% csrf_token %}
2020
<div class="d-flex justify-content-center">
21-
<button type="submit" class="btn btn-primary login-button">{% blocktranslate %}Login as {{ username }}{% endblocktrans %}</button>
21+
<button type="submit" class="btn btn-primary login-button">{% blocktranslate %}Login as {{ username }}{% endblocktranslate %}</button>
2222
</div>
2323
</form>
2424
</div>

evap/evaluation/templates/log/changed_fields_entry.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{% elif action.type == "clear" %}
1717
{{ action.label }} {% translate "cleared" %}
1818
{% elif action.type == "delete" %}
19-
{% blocktranslate with label=action.label count count=action.items|length %}{{ label }} was{% plural %}{{ label }} were{% endblocktrans %}:
19+
{% blocktranslate with label=action.label count count=action.items|length %}{{ label }} was{% plural %}{{ label }} were{% endblocktranslate %}:
2020
{{ action.items|join:", " }}
2121
{% elif action.type == "change" %}
2222
{{ action.label }}: {{ action.items.0 }} &#8594; {{ action.items.1 }}

evap/evaluation/templates/notebook.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h5 class="card-title m-0">
2020
<span class="visible-if-successful">{% translate 'Saved successfully' %}</span>
2121
</button>
2222
<div class="align-self-center right-to-element">
23-
<span class="ms-2 fas fa-circle-info" data-bs-toggle="tooltip" data-bs-placement="right" title="{% blocktranslate %}Here you can store private notes that you want to keep ready for future evaluations. The notes will be stored in plain text in your account on the EvaP server, but will not be shown to anyone but you.{% endblocktrans %}"></span>
23+
<span class="ms-2 fas fa-circle-info" data-bs-toggle="tooltip" data-bs-placement="right" title="{% blocktranslate %}Here you can store private notes that you want to keep ready for future evaluations. The notes will be stored in plain text in your account on the EvaP server, but will not be shown to anyone but you.{% endblocktranslate %}"></span>
2424
</div>
2525
</div>
2626
</div>

evap/evaluation/templates/profile.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h4 class="card-title mb-4">{% translate 'Delegates and emails' %}</h4>
5555
</tr>
5656
<tr>
5757
<td>
58-
<strong>{% blocktranslate %}You receive CC'ed emails for{% endblocktrans %}</strong><br />
58+
<strong>{% blocktranslate %}You receive CC'ed emails for{% endblocktranslate %}</strong><br />
5959
{% for ccing_user in ccing_users %}
6060
{{ ccing_user.full_name }}{% if not forloop.last %}, {% endif %}
6161
{% empty %}
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<span class="far fa-eye ms-1 icon-gray" data-bs-toggle="tooltip" data-bs-placement="left" title="
22
{{ intro_text }}<br />
33
{% for contributor in visible_by_contribution %}
4-
{{ contributor.full_name }}{% if contributor.is_proxy_user %} ({% blocktranslate count delegate_count=contributor.delegates.count %}{{ delegate_count }} person{% plural %}{{ delegate_count }} people{% endblocktrans %}){% endif %}{% if not forloop.last or visible_by_delegation_count > 0 %}, {% endif %}
4+
{{ contributor.full_name }}{% if contributor.is_proxy_user %} ({% blocktranslate count delegate_count=contributor.delegates.count %}{{ delegate_count }} person{% plural %}{{ delegate_count }} people{% endblocktranslate %}){% endif %}{% if not forloop.last or visible_by_delegation_count > 0 %}, {% endif %}
55
{% endfor %}
66
{% if visible_by_delegation_count > 0 %}
7-
{% blocktranslate count delegate_count=visible_by_delegation_count %}{{ delegate_count }} delegate{% plural %}{{ delegate_count }} delegates{% endblocktrans %}
7+
{% blocktranslate count delegate_count=visible_by_delegation_count %}{{ delegate_count }} delegate{% plural %}{{ delegate_count }} delegates{% endblocktranslate %}
88
{% endif %}
99
{% translate 'and the evaluation team.' %}
1010
"></span>

evap/grades/templates/grades_course_view.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h3 class="mb-3">{{ course.name }} ({{ semester.name }})</h3>
4040
<span slot="question">
4141
{% blocktranslate trimmed with description=grade_document.description %}
4242
Do you really want to delete the grade document <strong>{{ description }}</strong>?
43-
{% endblocktrans %}
43+
{% endblocktranslate %}
4444
</span>
4545

4646
<button slot="show-button" type="button" class="btn btn-sm btn-danger" data-bs-toggle="tooltip" data-bs-placement="top" title="{% translate 'Delete' %}">

evap/grades/templates/grades_semester_view.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ <h3 class="col-8 mb-0">
7474
<span slot="question">
7575
{% blocktranslate trimmed with course_name=course.name %}
7676
Please confirm that a grade document for the course <strong>{{ course_name }}</strong> will be uploaded later on.
77-
{% endblocktrans %}
77+
{% endblocktranslate %}
7878
</span>
7979

8080
<a slot="show-button" href="#">
@@ -97,7 +97,7 @@ <h3 class="col-8 mb-0">
9797
<span slot="question">
9898
{% blocktranslate trimmed with course_name=course.name %}
9999
Please confirm that the final grades for the course <strong>{{ course_name }}</strong> have been submitted but will not be uploaded.
100-
{% endblocktrans %}
100+
{% endblocktranslate %}
101101
</span>
102102

103103
<button slot="show-button" type="button" {{ disable_if_archived }} class="btn btn-sm btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top" title="{% translate 'Confirm that final grades have been submitted but will not be uploaded.' %}">

evap/grades/templates/grades_upload_form.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
{% if show_automated_publishing_info %}
1212
<div class="callout callout-info">
1313
<b>{% translate 'Automated publishing' %}</b><br />
14-
{% blocktranslate %}After this file with final grades was uploaded, the evaluation results will be published automatically once the evaluation ends. If the evaluation has already ended, it will be published immediately. All contributors and participants will receive an email informing them about the published evaluation results and the available grade file document.{% endblocktrans %}
14+
{% blocktranslate %}After this file with final grades was uploaded, the evaluation results will be published automatically once the evaluation ends. If the evaluation has already ended, it will be published immediately. All contributors and participants will receive an email informing them about the published evaluation results and the available grade file document.{% endblocktranslate %}
1515
</div>
1616
{% endif %}
1717

1818
<h3 class="mb-3">
1919
{% if final_grades %}
20-
{% blocktranslate with course=course.name semester=semester.name %}Upload final grades for {{ course }} ({{ semester }}){% endblocktrans %}
20+
{% blocktranslate with course=course.name semester=semester.name %}Upload final grades for {{ course }} ({{ semester }}){% endblocktranslate %}
2121
{% else %}
22-
{% blocktranslate with course=course.name semester=semester.name %}Upload midterm grades for {{ course }} ({{ semester }}){% endblocktrans %}
22+
{% blocktranslate with course=course.name semester=semester.name %}Upload midterm grades for {{ course }} ({{ semester }}){% endblocktranslate %}
2323
{% endif %}
2424
</h3>
2525
<form method="POST" class="form-horizontal" id="grades-upload-form" enctype="multipart/form-data">

evap/results/templates/result_widget_tooltip.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% if weight_info %}
44
<p>
5-
{% blocktranslate with percentage=weight_info %}This evaluation contributes {{ percentage }} to the final grade of the course.{% endblocktrans %}
5+
{% blocktranslate with percentage=weight_info %}This evaluation contributes {{ percentage }} to the final grade of the course.{% endblocktranslate %}
66
</p>
77
{% endif %}
88
{% if question_result %}

evap/results/templates/results_evaluation_detail.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ <h3 class="mb-0">{{ evaluation.full_name }} ({{ evaluation.course.semester.name
4444
class="btn btn-sm btn-light{% if view == 'export' %} active{% endif %}"
4545
data-bs-toggle="tooltip"
4646
data-bs-placement="bottom"
47-
title="{% blocktranslate %}Shows filtered view meant for personal export. Other contributors' results and private answers are hidden.{% endblocktrans %}"
47+
title="{% blocktranslate %}Shows filtered view meant for personal export. Other contributors' results and private answers are hidden.{% endblocktranslate %}"
4848
>
4949
{% translate 'Export' context 'view mode' %}
5050
</a>
@@ -67,7 +67,7 @@ <h3 class="mb-0">{{ evaluation.full_name }} ({{ evaluation.course.semester.name
6767
class="btn btn-sm btn-light"
6868
data-bs-toggle="tooltip"
6969
data-bs-placement="bottom"
70-
title="{% blocktranslate %}The results of this evaluation have not been published because it didn't get enough votes.{% endblocktrans %}"
70+
title="{% blocktranslate %}The results of this evaluation have not been published because it didn't get enough votes.{% endblocktranslate %}"
7171
>
7272
{% if evaluation.course.is_private %}
7373
{% translate 'Participant' %}

evap/results/templates/textanswer_list.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="w-100">
44
<div class="float-end text-end">
55
<span class="d-print-none">
6-
{% blocktranslate asvar intro_text %}These text answers can be seen by:{% endblocktrans %}
6+
{% blocktranslate asvar intro_text %}These text answers can be seen by:{% endblocktranslate %}
77
{% include 'textanswer_visibility_info.html' with intro_text=intro_text visible_by_contribution=question_result.answers_visible_to.visible_by_contribution visible_by_delegation_count=question_result.answers_visible_to.visible_by_delegation_count %}
88
</span>
99
<div class="d-inline-block badge-participants badge-participants-{{ num_answers|participationclass:num_voters }} ms-2">

evap/rewards/templates/rewards_index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{{ block.super }}
99

1010
<div class="callout callout-info small">
11-
{% blocktranslate %}You will get reward points by taking part in evaluations. These points can be redeemed for different events. You will receive vouchers for food and drinks at the event you selected below. We'll inform you about any upcoming event where you can redeem your reward points.{% endblocktrans %}
11+
{% blocktranslate %}You will get reward points by taking part in evaluations. These points can be redeemed for different events. You will receive vouchers for food and drinks at the event you selected below. We'll inform you about any upcoming event where you can redeem your reward points.{% endblocktranslate %}
1212
</div>
1313

1414
<div class="card card-outline-primary mb-3">
@@ -50,10 +50,10 @@
5050
</span>
5151
</form>
5252
{% else %}
53-
<p class="fst-italic">{% blocktranslate %}Currently there are no events available for which you can redeem points. We'll send you a message when this changes.{% endblocktrans %}</p>
53+
<p class="fst-italic">{% blocktranslate %}Currently there are no events available for which you can redeem points. We'll send you a message when this changes.{% endblocktranslate %}</p>
5454
{% endif %}
5555
{% else %}
56-
<p class="fst-italic">{% blocktranslate %}You don't have any reward points that you could redeem.{% endblocktrans %}</p>
56+
<p class="fst-italic">{% blocktranslate %}You don't have any reward points that you could redeem.{% endblocktranslate %}</p>
5757
{% endif %}
5858
</div>
5959
</div>

evap/rewards/templates/rewards_reward_point_redemption_event_list.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<span slot="question">
3131
{% blocktranslate trimmed with event_name=event.name %}
3232
Do you really want to delete the event <strong>{{ event_name }}</strong>?
33-
{% endblocktrans %}
33+
{% endblocktranslate %}
3434
</span>
3535

3636
<button slot="show-button" type="button" class="btn btn-sm btn-danger" data-bs-toggle="tooltip" data-bs-placement="top" title="{% translate 'Delete' %}">

evap/staff/templates/staff_course_type_merge.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h3>{% translate 'Merge course types' %}</h3>
1717
<p>
1818
{% blocktranslate %}The following courses currently have the course type <strong>{{ other_type }}</strong> and will
1919
get the type <strong>{{ main_type }}</strong> once you merge the course types. The course type <strong>
20-
{{ other_type }}</strong> will be deleted after that.{% endblocktrans %}
20+
{{ other_type }}</strong> will be deleted after that.{% endblocktranslate %}
2121
</p>
2222

2323
<ul>

evap/staff/templates/staff_evaluation_email.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block content %}
66
{{ block.super }}
77
{% if form.errors %}
8-
<div class="alert alert-danger" role="alert">{% blocktranslate %}Please fill out all required fields and select at least one recipient group.{% endblocktrans %}</div>
8+
<div class="alert alert-danger" role="alert">{% blocktranslate %}Please fill out all required fields and select at least one recipient group.{% endblocktranslate %}</div>
99
{% endif %}
1010
<form id="evaluation-email-form" method="POST" class="form-horizontal">
1111
{% csrf_token %}

0 commit comments

Comments
 (0)