Skip to content

Commit

Permalink
rg " endblocktrans " --files-with-matches | xargs sed -i "s/ endblock…
Browse files Browse the repository at this point in the history
…trans / endblocktranslate /g"
  • Loading branch information
richardebeling committed Feb 26, 2024
1 parent bcdca7d commit e45aca5
Show file tree
Hide file tree
Showing 31 changed files with 73 additions and 73 deletions.
10 changes: 5 additions & 5 deletions evap/contributor/templates/contributor_evaluation_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

<div class="callout callout-info small">
{% if editable %}
{% 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 %}
{% 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 %}
{% else %}
{% blocktranslate %}You cannot edit this evaluation because it has already been approved.{% endblocktrans %}
{% blocktranslate %}You cannot edit this evaluation because it has already been approved.{% endblocktranslate %}
{% endif %}
</div>
<h3>
Expand Down Expand Up @@ -99,7 +99,7 @@ <h5 class="card-title me-auto">{% translate 'Evaluation data' %}</h5>
<span slot="question">
{% blocktranslate trimmed %}
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.
{% endblocktrans %}
{% endblocktranslate %}
</span>

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

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

{% blocktranslate asvar title with evaluation_name=evaluation.full_name %}Request evaluation changes for {{ evaluation_name }}{% endblocktrans %}
{% blocktranslate asvar title with evaluation_name=evaluation.full_name %}Request evaluation changes for {{ evaluation_name }}{% endblocktranslate %}
{% translate 'Please tell us what changes to the evaluation we should make.' as teaser %}
{% include 'contact_modal.html' with modal_id='changeEvaluationRequestModal' user=request.user title=title teaser=teaser %}
{% endblock %}
Expand Down
4 changes: 2 additions & 2 deletions evap/evaluation/templates/contribution_formset.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h5 class="card-title me-auto">{% translate 'Contributors' %}</h5>
{% endfor %}
{% include 'bootstrap_form_errors.html' with errors=form.contributor.errors %}
{{ form.contributor }}
<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 %}">
<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 %}">
<input class="form-check-input" id="{{ form.does_not_contribute.id_for_label }}" name="{{ form.does_not_contribute.html_name }}"
type="checkbox"{% if form.does_not_contribute.value %} checked{% endif %}
{% if form.does_not_contribute.field.disabled %} disabled{% endif %} />
Expand All @@ -58,7 +58,7 @@ <h5 class="card-title me-auto">{% translate 'Contributors' %}</h5>
<br /><br />
<span class="{% if form.label.errors %}error-label{% endif %}">{% translate 'Label' %}:
<span data-bs-toggle="tooltip" data-bs-placement="right" class="fas fa-circle-info"
title="{% blocktranslate %}This text will be shown next to the contributor's name in the questionnaire.{% endblocktrans %}">
title="{% blocktranslate %}This text will be shown next to the contributor's name in the questionnaire.{% endblocktranslate %}">
</span>
</span>
<br />
Expand Down
2 changes: 1 addition & 1 deletion evap/evaluation/templates/external_user_confirm_login.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h4 class="card-title text-primary">
<form class="d-flex flex-column" role="form" method="POST">
{% csrf_token %}
<div class="d-flex justify-content-center">
<button type="submit" class="btn btn-primary login-button">{% blocktranslate %}Login as {{ username }}{% endblocktrans %}</button>
<button type="submit" class="btn btn-primary login-button">{% blocktranslate %}Login as {{ username }}{% endblocktranslate %}</button>
</div>
</form>
</div>
Expand Down
2 changes: 1 addition & 1 deletion evap/evaluation/templates/log/changed_fields_entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{% elif action.type == "clear" %}
{{ action.label }} {% translate "cleared" %}
{% elif action.type == "delete" %}
{% blocktranslate with label=action.label count count=action.items|length %}{{ label }} was{% plural %}{{ label }} were{% endblocktrans %}:
{% blocktranslate with label=action.label count count=action.items|length %}{{ label }} was{% plural %}{{ label }} were{% endblocktranslate %}:
{{ action.items|join:", " }}
{% elif action.type == "change" %}
{{ action.label }}: {{ action.items.0 }} &#8594; {{ action.items.1 }}
Expand Down
2 changes: 1 addition & 1 deletion evap/evaluation/templates/notebook.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h5 class="card-title m-0">
<span class="visible-if-successful">{% translate 'Saved successfully' %}</span>
</button>
<div class="align-self-center right-to-element">
<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>
<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>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion evap/evaluation/templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h4 class="card-title mb-4">{% translate 'Delegates and emails' %}</h4>
</tr>
<tr>
<td>
<strong>{% blocktranslate %}You receive CC'ed emails for{% endblocktrans %}</strong><br />
<strong>{% blocktranslate %}You receive CC'ed emails for{% endblocktranslate %}</strong><br />
{% for ccing_user in ccing_users %}
{{ ccing_user.full_name }}{% if not forloop.last %}, {% endif %}
{% empty %}
Expand Down
4 changes: 2 additions & 2 deletions evap/evaluation/templates/textanswer_visibility_info.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<span class="far fa-eye ms-1 icon-gray" data-bs-toggle="tooltip" data-bs-placement="left" title="
{{ intro_text }}<br />
{% for contributor in visible_by_contribution %}
{{ 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 %}
{{ 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 %}
{% endfor %}
{% if visible_by_delegation_count > 0 %}
{% blocktranslate count delegate_count=visible_by_delegation_count %}{{ delegate_count }} delegate{% plural %}{{ delegate_count }} delegates{% endblocktrans %}
{% blocktranslate count delegate_count=visible_by_delegation_count %}{{ delegate_count }} delegate{% plural %}{{ delegate_count }} delegates{% endblocktranslate %}
{% endif %}
{% translate 'and the evaluation team.' %}
"></span>
2 changes: 1 addition & 1 deletion evap/grades/templates/grades_course_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h3 class="mb-3">{{ course.name }} ({{ semester.name }})</h3>
<span slot="question">
{% blocktranslate trimmed with description=grade_document.description %}
Do you really want to delete the grade document <strong>{{ description }}</strong>?
{% endblocktrans %}
{% endblocktranslate %}
</span>

<button slot="show-button" type="button" class="btn btn-sm btn-danger" data-bs-toggle="tooltip" data-bs-placement="top" title="{% translate 'Delete' %}">
Expand Down
4 changes: 2 additions & 2 deletions evap/grades/templates/grades_semester_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h3 class="col-8 mb-0">
<span slot="question">
{% blocktranslate trimmed with course_name=course.name %}
Please confirm that a grade document for the course <strong>{{ course_name }}</strong> will be uploaded later on.
{% endblocktrans %}
{% endblocktranslate %}
</span>

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

<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.' %}">
Expand Down
6 changes: 3 additions & 3 deletions evap/grades/templates/grades_upload_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
{% if show_automated_publishing_info %}
<div class="callout callout-info">
<b>{% translate 'Automated publishing' %}</b><br />
{% 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 %}
{% 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 %}
</div>
{% endif %}

<h3 class="mb-3">
{% if final_grades %}
{% blocktranslate with course=course.name semester=semester.name %}Upload final grades for {{ course }} ({{ semester }}){% endblocktrans %}
{% blocktranslate with course=course.name semester=semester.name %}Upload final grades for {{ course }} ({{ semester }}){% endblocktranslate %}
{% else %}
{% blocktranslate with course=course.name semester=semester.name %}Upload midterm grades for {{ course }} ({{ semester }}){% endblocktrans %}
{% blocktranslate with course=course.name semester=semester.name %}Upload midterm grades for {{ course }} ({{ semester }}){% endblocktranslate %}
{% endif %}
</h3>
<form method="POST" class="form-horizontal" id="grades-upload-form" enctype="multipart/form-data">
Expand Down
2 changes: 1 addition & 1 deletion evap/results/templates/result_widget_tooltip.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% if weight_info %}
<p>
{% blocktranslate with percentage=weight_info %}This evaluation contributes {{ percentage }} to the final grade of the course.{% endblocktrans %}
{% blocktranslate with percentage=weight_info %}This evaluation contributes {{ percentage }} to the final grade of the course.{% endblocktranslate %}
</p>
{% endif %}
{% if question_result %}
Expand Down
4 changes: 2 additions & 2 deletions evap/results/templates/results_evaluation_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h3 class="mb-0">{{ evaluation.full_name }} ({{ evaluation.course.semester.name
class="btn btn-sm btn-light{% if view == 'export' %} active{% endif %}"
data-bs-toggle="tooltip"
data-bs-placement="bottom"
title="{% blocktranslate %}Shows filtered view meant for personal export. Other contributors' results and private answers are hidden.{% endblocktrans %}"
title="{% blocktranslate %}Shows filtered view meant for personal export. Other contributors' results and private answers are hidden.{% endblocktranslate %}"
>
{% translate 'Export' context 'view mode' %}
</a>
Expand All @@ -67,7 +67,7 @@ <h3 class="mb-0">{{ evaluation.full_name }} ({{ evaluation.course.semester.name
class="btn btn-sm btn-light"
data-bs-toggle="tooltip"
data-bs-placement="bottom"
title="{% blocktranslate %}The results of this evaluation have not been published because it didn't get enough votes.{% endblocktrans %}"
title="{% blocktranslate %}The results of this evaluation have not been published because it didn't get enough votes.{% endblocktranslate %}"
>
{% if evaluation.course.is_private %}
{% translate 'Participant' %}
Expand Down
2 changes: 1 addition & 1 deletion evap/results/templates/textanswer_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="w-100">
<div class="float-end text-end">
<span class="d-print-none">
{% blocktranslate asvar intro_text %}These text answers can be seen by:{% endblocktrans %}
{% blocktranslate asvar intro_text %}These text answers can be seen by:{% endblocktranslate %}
{% 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 %}
</span>
<div class="d-inline-block badge-participants badge-participants-{{ num_answers|participationclass:num_voters }} ms-2">
Expand Down
6 changes: 3 additions & 3 deletions evap/rewards/templates/rewards_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{ block.super }}

<div class="callout callout-info small">
{% 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 %}
{% 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 %}
</div>

<div class="card card-outline-primary mb-3">
Expand Down Expand Up @@ -50,10 +50,10 @@
</span>
</form>
{% else %}
<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>
<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>
{% endif %}
{% else %}
<p class="fst-italic">{% blocktranslate %}You don't have any reward points that you could redeem.{% endblocktrans %}</p>
<p class="fst-italic">{% blocktranslate %}You don't have any reward points that you could redeem.{% endblocktranslate %}</p>
{% endif %}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<span slot="question">
{% blocktranslate trimmed with event_name=event.name %}
Do you really want to delete the event <strong>{{ event_name }}</strong>?
{% endblocktrans %}
{% endblocktranslate %}
</span>

<button slot="show-button" type="button" class="btn btn-sm btn-danger" data-bs-toggle="tooltip" data-bs-placement="top" title="{% translate 'Delete' %}">
Expand Down
2 changes: 1 addition & 1 deletion evap/staff/templates/staff_course_type_merge.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h3>{% translate 'Merge course types' %}</h3>
<p>
{% blocktranslate %}The following courses currently have the course type <strong>{{ other_type }}</strong> and will
get the type <strong>{{ main_type }}</strong> once you merge the course types. The course type <strong>
{{ other_type }}</strong> will be deleted after that.{% endblocktrans %}
{{ other_type }}</strong> will be deleted after that.{% endblocktranslate %}
</p>

<ul>
Expand Down
2 changes: 1 addition & 1 deletion evap/staff/templates/staff_evaluation_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block content %}
{{ block.super }}
{% if form.errors %}
<div class="alert alert-danger" role="alert">{% blocktranslate %}Please fill out all required fields and select at least one recipient group.{% endblocktrans %}</div>
<div class="alert alert-danger" role="alert">{% blocktranslate %}Please fill out all required fields and select at least one recipient group.{% endblocktranslate %}</div>
{% endif %}
<form id="evaluation-email-form" method="POST" class="form-horizontal">
{% csrf_token %}
Expand Down
Loading

0 comments on commit e45aca5

Please sign in to comment.