mirror of
https://github.com/nekename/OpenDeck.git
synced 2026-10-28 09:44:01 +00:00
fix: resolve missing localisation keys in ParentActionView and consolidate its key namespace
This commit is contained in:
3 files changed
+24
-18
No files matched your search
@@ -111,7 +111,7 @@
|
||||
|
||||
<div class="px-6 pt-6 pb-4 text-neutral-300">
|
||||
<button class="float-right text-xl" on:click={() => ($inspectedParentAction = null)} aria-label={$t("settings.close")}>✕</button>
|
||||
<h1 class="font-semibold text-2xl">{parentUuid == "opendeck.toggleaction" ? $t("parent_action.toggle") : $t("parent_action.multi")}</h1>
|
||||
<h1 class="font-semibold text-2xl">{parentUuid == "opendeck.toggleaction" ? $t("parent_action_view.toggle") : $t("parent_action_view.multi")}</h1>
|
||||
</div>
|
||||
|
||||
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
||||
@@ -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)}
|
||||
/>
|
||||
<p class="ml-4 text-xl text-neutral-300">{instance.action.name}</p>
|
||||
<button
|
||||
class="ml-auto mr-10"
|
||||
on:click|stopPropagation={() => removeInstance(index)}
|
||||
tabindex={-1}
|
||||
aria-label={$t("parent_action.remove", { name: instance.action.name })}
|
||||
aria-label={$t("parent_action_view.remove", { name: instance.action.name })}
|
||||
>
|
||||
<Trash size="32" class="text-neutral-400" />
|
||||
</button>
|
||||
@@ -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")}
|
||||
>
|
||||
<img src="/cube.png" class="m-2 w-24 rounded-xl" alt="" />
|
||||
<p class="ml-4 text-xl text-neutral-400">{$t("action_view.dragpaste")}</p>
|
||||
<p class="ml-4 text-xl text-neutral-400">{$t("parent_action_view.drag_paste")}</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user