From b16907dc24e8e2d51ffc2050bc60e68b1523ef60 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun <cheeaun@gmail.com> Date: Wed, 14 Aug 2024 21:58:22 +0800 Subject: [PATCH] Forgot to localise these keyboard shortcuts --- src/components/keyboard-shortcuts-help.jsx | 44 +++++++++++----------- src/locales/en.po | 44 ++++++++++++++++++++++ 2 files changed, 66 insertions(+), 22 deletions(-) diff --git a/src/components/keyboard-shortcuts-help.jsx b/src/components/keyboard-shortcuts-help.jsx index d8099609..9c92d80f 100644 --- a/src/components/keyboard-shortcuts-help.jsx +++ b/src/components/keyboard-shortcuts-help.jsx @@ -62,17 +62,17 @@ export default memo(function KeyboardShortcutsHelp() { { action: t`Skip carousel to next post`, keys: ( - <> + <Trans> <kbd>Shift</kbd> + <kbd>j</kbd> - </> + </Trans> ), }, { action: t`Skip carousel to previous post`, keys: ( - <> + <Trans> <kbd>Shift</kbd> + <kbd>k</kbd> - </> + </Trans> ), }, { @@ -82,9 +82,9 @@ export default memo(function KeyboardShortcutsHelp() { { action: t`Open post details`, keys: ( - <> + <Trans> <kbd>Enter</kbd> or <kbd>o</kbd> - </> + </Trans> ), }, { @@ -100,17 +100,17 @@ export default memo(function KeyboardShortcutsHelp() { { action: t`Close post or dialogs`, keys: ( - <> + <Trans> <kbd>Esc</kbd> or <kbd>Backspace</kbd> - </> + </Trans> ), }, { action: t`Focus column in multi-column mode`, keys: ( - <> + <Trans> <kbd>1</kbd> to <kbd>9</kbd> - </> + </Trans> ), }, { @@ -121,18 +121,18 @@ export default memo(function KeyboardShortcutsHelp() { action: t`Compose new post (new window)`, className: 'insignificant', keys: ( - <> + <Trans> <kbd>Shift</kbd> + <kbd>c</kbd> - </> + </Trans> ), }, { action: t`Send post`, keys: ( - <> + <Trans> <kbd>Ctrl</kbd> + <kbd>Enter</kbd> or <kbd>⌘</kbd> +{' '} <kbd>Enter</kbd> - </> + </Trans> ), }, { @@ -147,25 +147,25 @@ export default memo(function KeyboardShortcutsHelp() { action: t`Reply (new window)`, className: 'insignificant', keys: ( - <> + <Trans> <kbd>Shift</kbd> + <kbd>r</kbd> - </> + </Trans> ), }, { action: t`Like (favourite)`, keys: ( - <> + <Trans> <kbd>l</kbd> or <kbd>f</kbd> - </> + </Trans> ), }, { action: t`Boost`, keys: ( - <> + <Trans> <kbd>Shift</kbd> + <kbd>b</kbd> - </> + </Trans> ), }, { @@ -175,9 +175,9 @@ export default memo(function KeyboardShortcutsHelp() { { action: t`Toggle Cloak mode`, keys: ( - <> + <Trans> <kbd>Shift</kbd> + <kbd>Alt</kbd> + <kbd>k</kbd> - </> + </Trans> ), }, ].map(({ action, className, keys }) => ( diff --git a/src/locales/en.po b/src/locales/en.po index a207b009..d8e81e60 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -983,10 +983,18 @@ msgstr "" msgid "Skip carousel to next post" msgstr "" +#: src/components/keyboard-shortcuts-help.jsx:65 +msgid "<0>Shift</0> + <1>j</1>" +msgstr "" + #: src/components/keyboard-shortcuts-help.jsx:71 msgid "Skip carousel to previous post" msgstr "" +#: src/components/keyboard-shortcuts-help.jsx:73 +msgid "<0>Shift</0> + <1>k</1>" +msgstr "" + #: src/components/keyboard-shortcuts-help.jsx:79 msgid "Load new posts" msgstr "" @@ -996,6 +1004,10 @@ msgstr "" msgid "Open post details" msgstr "" +#: src/components/keyboard-shortcuts-help.jsx:85 +msgid "<0>Enter</0> or <1>o</1>" +msgstr "" + #: src/components/keyboard-shortcuts-help.jsx:92 msgid "Expand content warning or<0/>toggle expanded/collapsed thread" msgstr "" @@ -1004,10 +1016,18 @@ msgstr "" msgid "Close post or dialogs" msgstr "" +#: src/components/keyboard-shortcuts-help.jsx:103 +msgid "<0>Esc</0> or <1>Backspace</1>" +msgstr "" + #: src/components/keyboard-shortcuts-help.jsx:109 msgid "Focus column in multi-column mode" msgstr "" +#: src/components/keyboard-shortcuts-help.jsx:111 +msgid "<0>1</0> to <1>9</1>" +msgstr "" + #: src/components/keyboard-shortcuts-help.jsx:117 msgid "Compose new post" msgstr "" @@ -1016,10 +1036,18 @@ msgstr "" msgid "Compose new post (new window)" msgstr "" +#: src/components/keyboard-shortcuts-help.jsx:124 +msgid "<0>Shift</0> + <1>c</1>" +msgstr "" + #: src/components/keyboard-shortcuts-help.jsx:130 msgid "Send post" msgstr "" +#: src/components/keyboard-shortcuts-help.jsx:132 +msgid "<0>Ctrl</0> + <1>Enter</1> or <2>⌘</2> + <3>Enter</3>" +msgstr "" + #: src/components/keyboard-shortcuts-help.jsx:139 #: src/components/nav-menu.jsx:367 #: src/components/search-form.jsx:72 @@ -1034,10 +1062,18 @@ msgstr "" msgid "Reply (new window)" msgstr "" +#: src/components/keyboard-shortcuts-help.jsx:150 +msgid "<0>Shift</0> + <1>r</1>" +msgstr "" + #: src/components/keyboard-shortcuts-help.jsx:156 msgid "Like (favourite)" msgstr "" +#: src/components/keyboard-shortcuts-help.jsx:158 +msgid "<0>l</0> or <1>f</1>" +msgstr "" + #: src/components/keyboard-shortcuts-help.jsx:164 #: src/components/status.jsx:842 #: src/components/status.jsx:2287 @@ -1046,6 +1082,10 @@ msgstr "" msgid "Boost" msgstr "" +#: src/components/keyboard-shortcuts-help.jsx:166 +msgid "<0>Shift</0> + <1>b</1>" +msgstr "" + #: src/components/keyboard-shortcuts-help.jsx:172 #: src/components/status.jsx:927 #: src/components/status.jsx:2344 @@ -1057,6 +1097,10 @@ msgstr "" msgid "Toggle Cloak mode" msgstr "" +#: src/components/keyboard-shortcuts-help.jsx:178 +msgid "<0>Shift</0> + <1>Alt</1> + <2>k</2>" +msgstr "" + #: src/components/list-add-edit.jsx:37 msgid "Edit list" msgstr ""