Avoid HTML markup in translation strings

This commit is contained in:
Baptiste Jonglez 2023-07-13 17:30:26 +02:00 committed by zorun
parent 7d26870975
commit bff44ae415
3 changed files with 13 additions and 14 deletions

View file

@ -103,18 +103,17 @@
{% if current_log_pref == LoggingMode.DISABLED or (current_log_pref != LoggingMode.RECORD_IP and any_ip_addresses) %}
<div id="history_warnings" class="card card-body bg-light">
{% if current_log_pref == LoggingMode.DISABLED %}
<p>{% set url = url_for(".edit_project") %}
{% trans %}
<i>This project has history disabled. New actions won't appear below. You can enable history on the</i>
<a href="{{ url }}">settings page</a>
{% endtrans %}
<p>
<i>{{ _("This project has history disabled. New actions won't appear below.") }}
<a href="{{ url_for(".edit_project") }}">{{ _("You can enable history on the settings page.") }}</a>
</i>
</p>
{% if history %}
<p>
{% trans %}
<i>The table below reflects actions recorded prior to disabling project history. You can
<a href="#" data-toggle="modal" data-keyboard="false" data-target="#confirm-erase">clear project history</a> to remove them.</i></p>
{% endtrans %}
<i>{{ _("The table below reflects actions recorded prior to disabling project history.") }}
<a href="#" data-toggle="modal" data-keyboard="false" data-target="#confirm-erase">{{ _("You can clear the project history to remove them.") }}</a>
</i>
</p>
{% endif %}
{% endif %}
{% if current_log_pref != LoggingMode.RECORD_IP and any_ip_addresses %}

View file

@ -29,7 +29,7 @@
<tr>
<td>
<h3>{{ _('Scan QR code') }}</h3>
<p><small>{% trans download_mobile=url_for(".mobile") %}On a mobile device, with <a href="{{ download_mobile }}">a compatible app installed</a>.{% endtrans %}</small></p>
<p><small><a href="{{ url_for(".mobile") }}">{{ _("Use a mobile device with a compatible app.") }}</a></small></p>
</td>
<td>
{{ qrcode | safe }}