diff --git a/src/components/ParentActionView.svelte b/src/components/ParentActionView.svelte index 13b2808..53c3d7a 100644 --- a/src/components/ParentActionView.svelte +++ b/src/components/ParentActionView.svelte @@ -111,7 +111,7 @@
-

{parentUuid == "opendeck.toggleaction" ? $t("parent_action.toggle") : $t("parent_action.multi")}

+

{parentUuid == "opendeck.toggleaction" ? $t("parent_action_view.toggle") : $t("parent_action_view.multi")}

@@ -120,7 +120,7 @@ class="flex flex-col h-128 overflow-auto" on:click={() => ($inspectedInstance = null)} role="list" - aria-label="{parentUuid == 'opendeck.toggleaction' ? $t('parent_action.toggle') : $t('parent_action.multi')} {$t('parent_action.children')}" + aria-label="{parentUuid == 'opendeck.toggleaction' ? $t('parent_action_view.toggle') : $t('parent_action_view.multi')} {$t('parent_action_view.children')}" on:keydown={handleListKeydown} > {#each children as instance, index} @@ -142,14 +142,18 @@ scale={3 / 4} role="presentation" tabindex={-1} - label={(parentUuid == "opendeck.toggleaction" ? "Toggle Action" : "Multi Action") + " action " + (index + 1)} + label={(parentUuid == "opendeck.toggleaction" ? $t("parent_action_view.toggle") : $t("parent_action_view.multi")) + + " " + + $t("parent_action_view.child") + + " " + + (index + 1)} />

{instance.action.name}

@@ -167,9 +171,9 @@ }} role="listitem" tabindex={children.length == 0 ? 0 : -1} - aria-label={$t("action_view.dragcopy")} + aria-label={$t("parent_action_view.drag_copy")} > -

{$t("action_view.dragpaste")}

+

{$t("parent_action_view.drag_paste")}

diff --git a/translations/de.json b/translations/de.json index 9403cbc..7b293a1 100644 --- a/translations/de.json +++ b/translations/de.json @@ -1,8 +1,6 @@ { "action_list.hint": "Verwende die Pfeiltasten, um zwischen Aktionen innerhalb einer Kategorie zu navigieren.", "action_list.search_placeholder": "Durchsuche Aktionen", - "action_view.drag_copy": "Ziehe eine neue Aktion hierher oder kopiere eine mit Strg+C und füge sie mit Strg+V ein.", - "action_view.drag_paste": "Ziehe oder füge Aktionen hier ein", "device_selector.choose_device": "Wähle ein Gerät...", "device_selector.device": "Gerät", "device_view.encoder": "Drehknauf", @@ -41,10 +39,13 @@ "no_devices_detected.install_plugin": "Du musst möglicherweise ein Plugin installieren, das Unterstützung für dein Gerät hinzufügt.", "no_devices_detected.restart": "{{PRODUCT_NAME}} neu starten", "no_devices_detected.title": "Keine Geräte gefunden", - "parent_action.children": "Unteraktionen", - "parent_action.multi": "Multiaktionen", - "parent_action.remove": "{{name}} entfernen", - "parent_action.toggle": "Umschaltaktion", + "parent_action_view.child": "Unteraktion", + "parent_action_view.children": "Unteraktionen", + "parent_action_view.drag_copy": "Ziehe eine neue Aktion hierher oder kopiere eine mit Strg+C und füge sie mit Strg+V ein.", + "parent_action_view.drag_paste": "Ziehe oder füge Aktionen hier ein", + "parent_action_view.multi": "Multiaktionen", + "parent_action_view.remove": "{{name}} entfernen", + "parent_action_view.toggle": "Umschaltaktion", "plugin_details.by": "von", "plugin_details.download_latest": "Neueste Version von GitHub herunterladen", "plugin_details.install": "Installieren", diff --git a/translations/en.json b/translations/en.json index 7d61ae7..dc9076c 100644 --- a/translations/en.json +++ b/translations/en.json @@ -1,8 +1,6 @@ { "action_list.hint": "Use arrow keys to navigate between actions within a category.", "action_list.search_placeholder": "Search actions", - "action_view.drag_copy": "Drag a new action here or copy one with Control+C and paste with Control+V.", - "action_view.drag_paste": "Drop or paste actions here", "device_selector.choose_device": "Choose a device...", "device_selector.device": "Device", "device_view.encoder": "Encoder", @@ -41,10 +39,13 @@ "no_devices_detected.install_plugin": "You may need to install a plugin that adds support for your device.", "no_devices_detected.restart": "Restart {{PRODUCT_NAME}}", "no_devices_detected.title": "No devices detected", - "parent_action.children": "children", - "parent_action.multi": "Multi Action", - "parent_action.remove": "Remove {{name}}", - "parent_action.toggle": "Toggle Action", + "parent_action_view.child": "child", + "parent_action_view.children": "children", + "parent_action_view.drag_copy": "Drag a new action here or copy one with Control+C and paste with Control+V.", + "parent_action_view.drag_paste": "Drop or paste actions here", + "parent_action_view.multi": "Multi Action", + "parent_action_view.remove": "Remove {{name}}", + "parent_action_view.toggle": "Toggle Action", "plugin_details.by": "by", "plugin_details.download_latest": "Download latest release from GitHub", "plugin_details.install": "Install",