i18n on the web - deepseek translations

This commit is contained in:
Priec
2026-08-14 20:35:37 +02:00
parent 2dc0d94ba0
commit 8f1bfdbe0c
91 changed files with 4679 additions and 1237 deletions

View File

@@ -7,14 +7,11 @@
{% if page.table_is_writable() %}
<section class="panel danger-panel">
<h2>Delete <code>{{ page.selection.table }}</code></h2>
<p class="hint">
Drops the table and its definition, and the profile too when this was its
last table. The backend refuses to delete a table that still has rows.
</p>
<h2>{{ nav.tr("td-delete-table") }} <code>{{ page.selection.table }}</code></h2>
<p class="hint">{{ nav.tr("td-delete-hint") }}</p>
{% if let Some(summary) = page.selected_table() %}
{% if !summary.depends_on.is_empty() %}
<p class="hint">It links to {{ summary.depends_on|join(", ") }}.</p>
<p class="hint">{{ nav.tr_args("td-links-to", [("tables", summary.depends_on.join(", "))]) }}</p>
{% endif %}
{% endif %}
<form hx-post="/admin/tables/delete"
@@ -22,18 +19,18 @@
<input type="hidden" name="profile" value="{{ page.selection.profile }}">
<input type="hidden" name="table" value="{{ page.selection.table }}">
<div class="form-grid">
<label class="wide">Type <code>{{ page.selection.table }}</code> to confirm
<label class="wide">{{ nav.tr("td-type-to-confirm") }} <code>{{ page.selection.table }}</code>
<input name="confirm_table_name" value="" autocomplete="off" placeholder="{{ page.selection.table }}">
</label>
</div>
<div class="form-actions">
<button type="submit" class="danger-submit">Delete table</button>
<button type="submit" class="danger-submit">{{ nav.tr("td-delete-table") }}</button>
</div>
</form>
</section>
{% else if !page.selection.has_table() %}
<section class="panel">
<h2>No table chosen</h2>
<p class="hint">Pick the table to delete in the <a href="/admin{{ page.selection.profile_query() }}">admin panel</a> first.</p>
<h2>{{ nav.tr("td-no-table-chosen") }}</h2>
<p class="hint">{{ nav.tr("td-pick-table-delete")|safe }}</p>
</section>
{% endif %}