Clean up some translation-related issues

This commit is contained in:
Jonas Schäfer
2021-01-24 10:54:18 +01:00
parent 62226c26ac
commit 8af949e7db
4 changed files with 20 additions and 19 deletions

View File

@@ -2,5 +2,5 @@
{% block topbar_classes %}{{ super() }} admin{% endblock %}
{% block topbar_left %}
{{ super() }}
<div class="admin-note">Admin area</div>
<div class="admin-note">{% trans %}Admin area{% endtrans %}</div>
{% endblock %}

View File

@@ -17,7 +17,7 @@
<dd>{{ target_user.phone }}</dd>
</dl>
{% call box("alert", _("Danger")) %}
<p>The user and their data will be deleted irrevocably, permanently and immediately upon pushing thre below button. <strong>There is no way back!</strong></p>
<p>{% trans %}The user and their data will be deleted irrevocably, permanently and immediately upon pushing thre below button. <strong>There is no way back!</strong>{% endtrans %}</p>
{% endcall %}
<div class="f-bbox">
{%- call standard_button("back", url_for(".index"), class="secondary") %}{% trans %}Back{% endtrans %}{% endcall -%}

View File

@@ -103,10 +103,8 @@ var copy_to_clipboard_btn = function(el) {
}
var icon = "done";
var label = "{% trans %}Copied to clipboard{% endtrans %}";
if (!success) {
icon = "cancel";
label = "{% trans %}Copy operation failed{% endtrans %}";
}
var icon_bak = get_current_icon(el.firstChild);
change_icon(el.firstChild, icon);