Refactor keyboard shortcuts modal to fix RTL locales (#7545)

* Refactor keyboard shortcuts modal to fix RTL locales

* Feedback

* Remove lowercase modifier keys
This commit is contained in:
Osama Sayegh
2019-05-21 06:39:32 +03:00
committed by GitHub
parent 307c526840
commit 0b5924d61e
4 changed files with 258 additions and 97 deletions

View File

@@ -1467,6 +1467,7 @@ en:
shift: "Shift"
ctrl: "Ctrl"
alt: "Alt"
enter: "Enter"
conditional_loading_section:
loading: Loading...
@@ -2792,62 +2793,67 @@ en:
image_load_error: '<a href="%url%">The image</a> could not be loaded.'
keyboard_shortcuts_help:
shortcut_key_delimiter_comma: ", "
shortcut_key_delimiter_plus: "+"
shortcut_delimiter_or: "%{shortcut1} or %{shortcut2}"
shortcut_delimiter_slash: "%{shortcut1}/%{shortcut2}"
shortcut_delimiter_space: "%{shortcut1} %{shortcut2}"
title: "Keyboard Shortcuts"
jump_to:
title: "Jump To"
home: "<b>g</b>, <b>h</b> Home"
latest: "<b>g</b>, <b>l</b> Latest"
new: "<b>g</b>, <b>n</b> New"
unread: "<b>g</b>, <b>u</b> Unread"
categories: "<b>g</b>, <b>c</b> Categories"
top: "<b>g</b>, <b>t</b> Top"
bookmarks: "<b>g</b>, <b>b</b> Bookmarks"
profile: "<b>g</b>, <b>p</b> Profile"
messages: "<b>g</b>, <b>m</b> Messages"
drafts: "<b>g</b>, <b>d</b> Drafts"
home: "%{shortcut} Home"
latest: "%{shortcut} Latest"
new: "%{shortcut} New"
unread: "%{shortcut} Unread"
categories: "%{shortcut} Categories"
top: "%{shortcut} Top"
bookmarks: "%{shortcut} Bookmarks"
profile: "%{shortcut} Profile"
messages: "%{shortcut} Messages"
drafts: "%{shortcut} Drafts"
navigation:
title: "Navigation"
jump: "<b>#</b> Go to post #"
back: "<b>u</b> Back"
up_down: "<b>k</b>/<b>j</b> Move selection &uarr; &darr;"
open: "<b>o</b> or <b>Enter</b> Open selected topic"
next_prev: "<b>shift</b>+<b>j</b>/<b>shift</b>+<b>k</b> Next/previous section"
jump: "%{shortcut} Go to post #"
back: "%{shortcut} Back"
up_down: "%{shortcut} Move selection &uarr; &darr;"
open: "%{shortcut} Open selected topic"
next_prev: "%{shortcut} Next/previous section"
application:
title: "Application"
create: "<b>c</b> Create a new topic"
notifications: "<b>n</b> Open notifications"
hamburger_menu: "<b>=</b> Open hamburger menu"
user_profile_menu: "<b>p</b> Open user menu"
show_incoming_updated_topics: "<b>.</b> Show updated topics"
search: "<b>/</b> or <b>ctrl</b>+<b>alt</b>+<b>f</b> Search"
help: "<b>?</b> Open keyboard help"
dismiss_new_posts: "<b>x</b>, <b>r</b> Dismiss New/Posts"
dismiss_topics: "<b>x</b>, <b>t</b> Dismiss Topics"
log_out: "<b>shift</b>+<b>z</b> <b>shift</b>+<b>z</b> Log Out"
create: "%{shortcut} Create a new topic"
notifications: "%{shortcut} Open notifications"
hamburger_menu: "%{shortcut} Open hamburger menu"
user_profile_menu: "%{shortcut} Open user menu"
show_incoming_updated_topics: "%{shortcut} Show updated topics"
search: "%{shortcut} Search"
help: "%{shortcut} Open keyboard help"
dismiss_new_posts: "%{shortcut} Dismiss New/Posts"
dismiss_topics: "%{shortcut} Dismiss Topics"
log_out: "%{shortcut} Log Out"
composing:
title: "Composing"
return: "<b>shift</b>+<b>c</b> Return to composer"
fullscreen: "<b>shift</b>+<b>F11</b> Fullscreen composer"
return: "%{shortcut} Return to composer"
fullscreen: "%{shortcut} Fullscreen composer"
actions:
title: "Actions"
bookmark_topic: "<b>f</b> Toggle bookmark topic"
pin_unpin_topic: "<b>shift</b>+<b>p</b> Pin/Unpin topic"
share_topic: "<b>shift</b>+<b>s</b> Share topic"
share_post: "<b>s</b> Share post"
reply_as_new_topic: "<b>t</b> Reply as linked topic"
reply_topic: "<b>shift</b>+<b>r</b> Reply to topic"
reply_post: "<b>r</b> Reply to post"
quote_post: "<b>q</b> Quote post"
like: "<b>l</b> Like post"
flag: "<b>!</b> Flag post"
bookmark: "<b>b</b> Bookmark post"
edit: "<b>e</b> Edit post"
delete: "<b>d</b> Delete post"
mark_muted: "<b>m</b>, <b>m</b> Mute topic"
mark_regular: "<b>m</b>, <b>r</b> Regular (default) topic"
mark_tracking: "<b>m</b>, <b>t</b> Track topic"
mark_watching: "<b>m</b>, <b>w</b> Watch topic"
print: "<b>ctrl</b>+<b>p</b> Print topic"
bookmark_topic: "%{shortcut} Toggle bookmark topic"
pin_unpin_topic: "%{shortcut} Pin/Unpin topic"
share_topic: "%{shortcut} Share topic"
share_post: "%{shortcut} Share post"
reply_as_new_topic: "%{shortcut} Reply as linked topic"
reply_topic: "%{shortcut} Reply to topic"
reply_post: "%{shortcut} Reply to post"
quote_post: "%{shortcut} Quote post"
like: "%{shortcut} Like post"
flag: "%{shortcut} Flag post"
bookmark: "%{shortcut} Bookmark post"
edit: "%{shortcut} Edit post"
delete: "%{shortcut} Delete post"
mark_muted: "%{shortcut} Mute topic"
mark_regular: "%{shortcut} Regular (default) topic"
mark_tracking: "%{shortcut} Track topic"
mark_watching: "%{shortcut} Watch topic"
print: "%{shortcut} Print topic"
badges:
earned_n_times: