desktop: Hotkey “s” being localized to “seconds”
The string "s"
in the POT template was sourced in three lines:
-
modules/gui/macosx/VLCOpenWindowController.m:369
for subtitle delay (seconds) -
modules/gui/macosx/VLCTrackSynchronizationWindowController.m:52
for audio track synchronization (seconds) -
modules/gui/macosx/VLCTrackSynchronizationWindowController.m:56
for subtitle track synchronization (seconds)
None of which is related to hotkeys.
The definitions of localizable hotkey strings are found in src/misc/actions.c
. "s"
is not one of the strings to translate.
However, in the Preferences window, the key sequence "s
" is being localized using the translated text of "s"
(seconds).
Possibly related to #25754. But this bug should be easily fixable.
The translation is caused by tr(name)
in vlc_keycode2str()
.
I think checking the length of name
> 1 then tr()
is enough as a quick fix.