Skip to content

Commit

Permalink
Merge pull request #2052 from googlefonts/issue-2051-fix-translation-key
Browse files Browse the repository at this point in the history
Fix translation keys (within shortcuts)
  • Loading branch information
ollimeier authored Feb 26, 2025
2 parents ab83b13 + 64a4078 commit 7157665
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/fontra/views/applicationsettings/panel-shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,7 @@ function validateShortCutDefinition(key, definition) {
for (const otherDefinition of getShortCuts(otherKey)) {
if (isShortCutDefinitionEqual(otherDefinition, definition)) {
warnings.push(
`⚠️ ${translate(
"application-settings.shortcuts.warning.exists",
getActionTitle(otherKey)
)}`
`⚠️ ${translate("shortcuts.warning.exists", getActionTitle(otherKey))}`
);
break;
}
Expand Down Expand Up @@ -429,9 +426,7 @@ class ShortCutElement extends HTMLElement {
"onkeydown": (event) => this.recordShortCut(id, event),
"onkeyup": (event) => this.recordShortCutKeyUp(id, event),
"onblur": (event) => this.handleOnBlur(id),
"data-tooltip": translate(
"application-settings.shortcuts.tooltip.click-and-record"
),
"data-tooltip": translate("shortcuts.tooltip.click-and-record"),
"data-tooltipposition": "top",
})
);
Expand All @@ -445,9 +440,7 @@ class ShortCutElement extends HTMLElement {
"class": "fontra-ui-shortcuts-panel-icon",
"src": "/tabler-icons/refresh.svg",
"onclick": (event) => this.resetShortCut(id),
"data-tooltip": translate(
"application-settings.shortcuts.tooltip.reset-to-default"
),
"data-tooltip": translate("shortcuts.tooltip.reset-to-default"),
"data-tooltipposition": "top",
})
);
Expand Down

0 comments on commit 7157665

Please sign in to comment.