diff --git a/frontend/messages/de.json b/frontend/messages/de.json index 8bfd4067..32f6e464 100644 --- a/frontend/messages/de.json +++ b/frontend/messages/de.json @@ -936,12 +936,14 @@ "shortcut_new_region": "Neuen Bereich zeichnen", "shortcut_toggle_training": "Für Training markieren", "shortcut_delete_region": "Aktuellen Bereich löschen", - "shortcut_close_panel": "Bereich schließen", + "shortcut_close_panel": "Panel schließen", "shortcut_help": "Tastaturkürzel anzeigen", "shortcut_draw_hint": "Ziehen Sie mit der Maus einen Bereich auf.", + "key_cap_delete": "Entf", "cheatsheet_title": "Tastaturkürzel", "cheatsheet_close": "Kürzelübersicht schließen", "cheatsheet_autosave_hint": "Änderungen werden automatisch gespeichert.", + "annotation_view_label": "Block anzeigen", "annotation_label_with_delete": "Block anzeigen, Entf zum Löschen.", "transcription_mode_help_label": "Lese- und Bearbeitungsmodus", "transcription_mode_help_body": "Lesen zeigt die Transkription als fließenden Text. Bearbeiten öffnet die Textfelder für jede Passage.", diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 4ba5dcfc..435860e1 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -939,9 +939,11 @@ "shortcut_close_panel": "Close panel", "shortcut_help": "Show keyboard shortcuts", "shortcut_draw_hint": "Drag a region with your mouse.", + "key_cap_delete": "Del", "cheatsheet_title": "Keyboard shortcuts", "cheatsheet_close": "Close shortcut overview", "cheatsheet_autosave_hint": "Changes are saved automatically.", + "annotation_view_label": "View block", "annotation_label_with_delete": "Show block, press Delete to remove.", "transcription_mode_help_label": "Read and edit mode", "transcription_mode_help_body": "Read shows the transcription as flowing text. Edit opens the text fields for each passage.", diff --git a/frontend/messages/es.json b/frontend/messages/es.json index 954bcbbf..88e2affb 100644 --- a/frontend/messages/es.json +++ b/frontend/messages/es.json @@ -939,9 +939,11 @@ "shortcut_close_panel": "Cerrar panel", "shortcut_help": "Mostrar atajos de teclado", "shortcut_draw_hint": "Arrastre una región con el ratón.", + "key_cap_delete": "Supr", "cheatsheet_title": "Atajos de teclado", "cheatsheet_close": "Cerrar el resumen de atajos", "cheatsheet_autosave_hint": "Los cambios se guardan automáticamente.", + "annotation_view_label": "Ver bloque", "annotation_label_with_delete": "Mostrar bloque, pulse Supr para eliminar.", "transcription_mode_help_label": "Modo lectura y edición", "transcription_mode_help_body": "Lectura muestra la transcripción como texto continuo. Edición abre los campos de texto para cada pasaje.", diff --git a/frontend/src/lib/document/annotation/AnnotationShape.svelte b/frontend/src/lib/document/annotation/AnnotationShape.svelte index 7b301d76..2a67761c 100644 --- a/frontend/src/lib/document/annotation/AnnotationShape.svelte +++ b/frontend/src/lib/document/annotation/AnnotationShape.svelte @@ -36,7 +36,9 @@ let { // When deletion is available (transcribe mode), announce the otherwise-hidden // Delete affordance to assistive tech (issue #327). The transcribeShortcuts // action is the single owner of the key itself. -const ariaLabel = $derived(showDelete ? m.annotation_label_with_delete() : 'Block anzeigen'); +const ariaLabel = $derived( + showDelete ? m.annotation_label_with_delete() : m.annotation_view_label() +); function hexToRgba(hex: string, alpha: number): string { const r = parseInt(hex.slice(1, 3), 16); diff --git a/frontend/src/lib/document/transcription/ShortcutCheatsheet.svelte b/frontend/src/lib/document/transcription/ShortcutCheatsheet.svelte index 199f85e5..3d1a7445 100644 --- a/frontend/src/lib/document/transcription/ShortcutCheatsheet.svelte +++ b/frontend/src/lib/document/transcription/ShortcutCheatsheet.svelte @@ -16,7 +16,7 @@ const groups = [ { cap: 'e', label: m.shortcut_toggle_mode() }, { cap: 'n', label: m.shortcut_new_region() }, { cap: 't', label: m.shortcut_toggle_training() }, - { cap: 'Entf', label: m.shortcut_delete_region() } + { cap: m.key_cap_delete(), label: m.shortcut_delete_region() } ], [ { cap: 'Esc', label: m.shortcut_close_panel() },