You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then they are duplicated in the translated strings, for example in molecules-and-light-strings_en.json:
"pauseOrPlayShortcutDescription": {
"value": "Pause or play action in Observation Window with Alt key plus K."
},
"stepForwardShortcutDescription": {
"value": "When action is paused step forward in bigger steps with Alt key plus L."
So if the code needs to be changed, we'll have to change (potentially many!) string files. The strings should contain StringUtils.fillIn placeholders, and the correct key (and modifier?) should be inserted by the implementation.
It would also be nice to standardize on a more concise (and typical) syntax for referring to hotkeys. "Alt key plus K" is verbose, inconsistent (why not "Alt key plus K key"), confusing ("plus" could be interpretted as "+") and unusal. More typical is "Alt+K". See for example this non-technical reference: https://www.tckpublishing.com/27-handy-keyboard-shortcuts-every-writer-should-know/
The text was updated successfully, but these errors were encountered:
pixelzoom
changed the title
Hot keys are not handled correctly in translated strings.
Hotkeys are not handled correctly in translated strings.
Jun 22, 2021
Noted while working on hotkey support for Fourier in phetsims/fourier-making-waves#91.
Hotkeys are inlined in the implementation, for example see greenhouse-effect MicroScreenView:
Then they are duplicated in the translated strings, for example in molecules-and-light-strings_en.json:
So if the code needs to be changed, we'll have to change (potentially many!) string files. The strings should contain
StringUtils.fillIn
placeholders, and the correct key (and modifier?) should be inserted by the implementation.It would also be nice to standardize on a more concise (and typical) syntax for referring to hotkeys. "Alt key plus K" is verbose, inconsistent (why not "Alt key plus K key"), confusing ("plus" could be interpretted as "+") and unusal. More typical is "Alt+K". See for example this non-technical reference: https://www.tckpublishing.com/27-handy-keyboard-shortcuts-every-writer-should-know/
The text was updated successfully, but these errors were encountered: