From 64577f2d927ff4c96723667173ef5477051711c8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 11 Mar 2026 12:22:46 +0000 Subject: [PATCH] i18n: translate 6 HTML Jinja2 templates with _() calls Replace all hardcoded English visible text with {{ _("key") }} calls in: - queue_dashboard.html: headings, stat cards, table headers, empty states - api_tokens.html: form labels, table headers, status badges, aria-labels - similarity_dashboard.html: headings, stat labels, controls, empty states - backup.html: buttons, config labels, table, retention section, confirm dialog - shared_links.html: form labels/options, table headers, status badges - duplicates.html: tabs, role tags, near-dup form, explanation bullets Follows i18n rules: placeholder/aria-label/title attrs translated, JS strings in @@ -11,20 +11,20 @@

- Queue Monitor + {{ _("queue.heading") }}

-

Real-time view of the document processing pipeline and Celery task queues.

+

{{ _("queue.subtitle") }}

-

Loading queue statistics…

+

{{ _("queue.loading_stats") }}

@@ -39,7 +39,7 @@
-

Queued Tasks

+

{{ _("queue.queued_tasks") }}

0

@@ -51,7 +51,7 @@
-

Active Tasks

+

{{ _("queue.active_tasks") }}

0

@@ -63,7 +63,7 @@
-

Files Processing

+

{{ _("queue.files_processing") }}

0

@@ -75,7 +75,7 @@
-

Workers Online

+

{{ _("queue.workers_online") }}

0

@@ -89,19 +89,19 @@

- Redis Queues + {{ _("queue.redis_queues") }}

- - + + - +
QueuePending{{ _("queue.col_queue") }}{{ _("common.pending") }}
No data
{{ _("queue.no_data") }}
@@ -111,19 +111,19 @@

- Processing Pipeline + {{ _("queue.processing_pipeline") }}

- - + + - +
StateFiles{{ _("queue.col_state") }}{{ _("queue.col_files") }}
No data
{{ _("queue.no_data") }}
@@ -134,7 +134,7 @@

- Active Tasks + {{ _("queue.active_tasks") }} (0)

@@ -142,13 +142,13 @@ - - - + + + - +
TaskArgumentsTask ID{{ _("queue.col_task") }}{{ _("queue.col_arguments") }}{{ _("queue.col_task_id") }}
No active tasks
{{ _("queue.no_active_tasks") }}
@@ -158,20 +158,20 @@

- Recently Processing Files + {{ _("queue.recently_processing") }}

- - - + + + - +
FileCurrent StepActions{{ _("queue.col_file") }}{{ _("queue.col_current_step") }}{{ _("common.actions") }}
No files currently processing
{{ _("queue.no_files_processing") }}
@@ -180,8 +180,8 @@
- Auto-refreshes every 10 seconds — - Last updated: + {{ _("queue.auto_refresh_1") }} 10 {{ _("queue.auto_refresh_2") }} — + {{ _("queue.last_updated") }}
diff --git a/frontend/templates/shared_links.html b/frontend/templates/shared_links.html index 48d269bd..5118015b 100644 --- a/frontend/templates/shared_links.html +++ b/frontend/templates/shared_links.html @@ -1,37 +1,35 @@ {% extends "base.html" %} -{% block title %}Shared Links – DocuElevate{% endblock %} +{% block title %}{{ _("shared.page_title") }}{% endblock %} {% block content %}

- Shared Links + {{ _("shared.heading") }}

- Share documents with anyone via a time-limited or view-limited link. - Recipients do not need a DocuElevate account. Links can be password-protected - and revoked at any time. + {{ _("shared.subtitle") }}

- +

- Find the file ID on the Files page or in the document detail URL. + {{ _("shared.file_id_help_pre") }} {{ _("shared.files_link") }} {{ _("shared.file_id_help_post") }}

- +
@@ -146,9 +144,9 @@
-

Shared link created!

+

{{ _("shared.link_created") }}

- Copy and send this link to the recipient. + {{ _("shared.link_created_help") }}

- +
@@ -180,28 +178,28 @@
@@ -209,22 +207,22 @@