From 3668d0e063a122b1866d77c843249c6671ba5cc6 Mon Sep 17 00:00:00 2001 From: MarekWo Date: Fri, 31 Jul 2026 19:20:20 +0200 Subject: [PATCH] feat(i18n): translate the contacts page templates (stage 5a) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 54 keys across contacts_base.html and the four contacts-* pages: the shared delete-confirm modal and toast, the map modal, the three nav cards, the whole cleanup form, the filter bars, and the add-contact URI/QR/manual forms. Node types stay English throughout — the COM/REP/ROOM/SENS codes and their "(Companion)" / "(Room Server)" expansions. The codes are also what the JS filters compare against, so translating the labels would be a step toward breaking the type filter. contacts.js is the other half of this stage and follows separately; it is 2771 lines and carries roughly twice the string count of these five templates. The hit-count guard earned its keep again: it refused to touch contacts-add.html and contacts-pending.html because "Name:", "Key:", "Type:", "Cancel" and the close aria-label each appear two or three times. All were genuinely the same label reused, so they share a key — but the script stopped rather than guessing, and the three files it had already processed were left correctly applied. Co-Authored-By: Claude Opus 5 --- app/templates/contacts-add.html | 34 +++++++++--------- app/templates/contacts-existing.html | 22 ++++++------ app/templates/contacts-manage.html | 36 +++++++++---------- app/templates/contacts-pending.html | 20 +++++------ app/templates/contacts_base.html | 20 +++++------ app/translations/en.json | 52 ++++++++++++++++++++++++++++ app/translations/pl.json | 52 ++++++++++++++++++++++++++++ 7 files changed, 170 insertions(+), 66 deletions(-) diff --git a/app/templates/contacts-add.html b/app/templates/contacts-add.html index 3f04cd9..9fe7eb1 100644 --- a/app/templates/contacts-add.html +++ b/app/templates/contacts-add.html @@ -46,17 +46,17 @@
- + - Paste a meshcore:// URI from the MeshCore mobile app + placeholder="{{ t('contacts.add.uri_ph') }}"> + {{ t('contacts.add.uri_hint') }}
- Preview: -
Name:
-
Key:
-
Type:
+ {{ t('contacts.add.preview') }} +
{{ t('contacts.add.name') }}
+
{{ t('contacts.add.key') }}
+
{{ t('contacts.add.type_short') }}
- +
- Scanned: -
Name:
-
Key:
-
Type:
+ {{ t('contacts.add.scanned') }} +
{{ t('contacts.add.name') }}
+
{{ t('contacts.add.key') }}
+
{{ t('contacts.add.type_short') }}
@@ -61,14 +61,14 @@
Loading...
-

Loading pending contacts...

+

{{ t('contacts.pending.loading') }}

@@ -79,7 +79,7 @@ @@ -91,7 +91,7 @@ - +