The great accessibility-plugin is only using the english language in textToSpeech and speechToText.
It would be great to change the code in /plugins/system/accessibility/accessibility.php (fill in the bold code):
$document->addScriptOptions(
'accessibility-options',
'labels' => [
'menuTitle' => Text::('PLG_SYSTEM_ACCESSIBILITY_MENU_TITLE'),
'increaseText' => Text::('PLG_SYSTEM_ACCESSIBILITY_INCREASE_TEXT'),
'decreaseText' => Text::('PLG_SYSTEM_ACCESSIBILITY_DECREASE_TEXT'),
'increaseTextSpacing' => Text::('PLG_SYSTEM_ACCESSIBILITY_INCREASE_SPACING'),
'decreaseTextSpacing' => Text::('PLG_SYSTEM_ACCESSIBILITY_DECREASE_SPACING'),
'invertColors' => Text::('PLG_SYSTEM_ACCESSIBILITY_INVERT_COLORS'),
'grayHues' => Text::('PLG_SYSTEM_ACCESSIBILITY_GREY'),
'underlineLinks' => Text::('PLG_SYSTEM_ACCESSIBILITY_UNDERLINE'),
'bigCursor' => Text::('PLG_SYSTEM_ACCESSIBILITY_CURSOR'),
'readingGuide' => Text::('PLG_SYSTEM_ACCESSIBILITY_READING'),
'textToSpeech' => Text::('PLG_SYSTEM_ACCESSIBILITY_TTS'),
'speechToText' => Text::('PLG_SYSTEM_ACCESSIBILITY_STT'),
'resetTitle' => Text::('PLG_SYSTEM_ACCESSIBILITY_RESET'),
'closeTitle' => Text::('PLG_SYSTEM_ACCESSIBILITY_CLOSE'),
],
'icon' => [
'position' => [
$direction => [
'size' => '0',
'units' => 'px',
]
]
],
'hotkeys' => [
'enabled' => true,
'helpTitles' => true,
],
'textToSpeechLang' => '[language of the Site]',
'speechToTextLang' => '[language of the Site]',
]
)
Thx a lot!
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-02-11 19:30:00 |
Closed_By | ⇒ | Quy |
Please test #32389