From b16907dc24e8e2d51ffc2050bc60e68b1523ef60 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun 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: ( - <> + Shift + j - + ), }, { action: t`Skip carousel to previous post`, keys: ( - <> + Shift + k - + ), }, { @@ -82,9 +82,9 @@ export default memo(function KeyboardShortcutsHelp() { { action: t`Open post details`, keys: ( - <> + Enter or o - + ), }, { @@ -100,17 +100,17 @@ export default memo(function KeyboardShortcutsHelp() { { action: t`Close post or dialogs`, keys: ( - <> + Esc or Backspace - + ), }, { action: t`Focus column in multi-column mode`, keys: ( - <> + 1 to 9 - + ), }, { @@ -121,18 +121,18 @@ export default memo(function KeyboardShortcutsHelp() { action: t`Compose new post (new window)`, className: 'insignificant', keys: ( - <> + Shift + c - + ), }, { action: t`Send post`, keys: ( - <> + Ctrl + Enter or +{' '} Enter - + ), }, { @@ -147,25 +147,25 @@ export default memo(function KeyboardShortcutsHelp() { action: t`Reply (new window)`, className: 'insignificant', keys: ( - <> + Shift + r - + ), }, { action: t`Like (favourite)`, keys: ( - <> + l or f - + ), }, { action: t`Boost`, keys: ( - <> + Shift + b - + ), }, { @@ -175,9 +175,9 @@ export default memo(function KeyboardShortcutsHelp() { { action: t`Toggle Cloak mode`, keys: ( - <> + Shift + Alt + k - + ), }, ].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 + <1>j" +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 + <1>k" +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 or <1>o" +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 or <1>Backspace" +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 to <1>9" +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 + <1>c" +msgstr "" + #: src/components/keyboard-shortcuts-help.jsx:130 msgid "Send post" msgstr "" +#: src/components/keyboard-shortcuts-help.jsx:132 +msgid "<0>Ctrl + <1>Enter or <2>⌘ + <3>Enter" +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 + <1>r" +msgstr "" + #: src/components/keyboard-shortcuts-help.jsx:156 msgid "Like (favourite)" msgstr "" +#: src/components/keyboard-shortcuts-help.jsx:158 +msgid "<0>l or <1>f" +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 + <1>b" +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 + <1>Alt + <2>k" +msgstr "" + #: src/components/list-add-edit.jsx:37 msgid "Edit list" msgstr ""